Ultrasonic flowmeter including stable flow rate calculation means based on instantaneous flow rate

ABSTRACT

In accordance with one embodiment, a flow meter of the present invention includes: transmission/reception means provided in a flow path for performing transmission/reception using a state change of fluid; repetition means for repeating the transmission/reception; time measurement means for measuring a time of propagation repeated by the repetition means; flow rate detection means for detecting a flow rate based on a value of the time measurement means; and number-of-times change means for changing to a predetermined number of repetition times. With such a structure, an influence caused by a variation of a flow can be suppressed by changing the number of repetition times so as to be suitable for a variation. As a result, reliable flow rate measurement with a high accuracy can be achieved.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a divisional of U.S. patent application Ser. No.10/019,418, entitled “Ultrasonic Flowmeter Having Sequentially ChangedDriving Method”, now U.S. Pat. No. 6,796,189 filed and had its 35 U.S.C.371 requirements met on Mar. 29, 2002, and which claims priority toPCT/JP00/04165, filed on Jun. 23, 2000, as well as claims priority toJapanese Application Nos. 11-177952, filed Jun. 24, 1999; 11-182995,filed Jun. 29, 1999; and 2000-34677, filed Feb. 14, 2000, all of whichare incorporated herein by reference. All of these applications werealso based on Japanese Application Nos. 11-106246, filed Apr. 14, 1999;11-54082, filed Mar. 2, 1999; 11-106247, filed Apr. 14, 1999; and11-12823, filed Jan. 21, 1999, all of which are incorporated herein byreference.

FIELD OF INVENTION

The present invention relates to a flowmeter for measuring the flow rateof liquid or air. The present invention relates to means for measuring aflow rate value in an accurate manner even when there is a variation inpressure or temperature.

BACKGROUND OF INVENTION

Conventionally, such a type of flowmeter is known, for example, inJapanese Laid-Open Publication No. 9-15006. As shown in FIG. 64, theflowmeter includes: a sampling program 2 for reading a measurementvalue, at an interval having a predetermined first sampling time, froman analog flow sensor 1 that measures the flow rate of gas; a consumedgas amount calculation program 3 for calculating the flow rate ofconsumed gas at a predetermined time; a mean value calculation program 4for calculating the mean value of measurement values, which are readfrom the analog flow sensor at the first sampling time, at an intervalof a second sampling time within a predetermined time period; a pressurevariation frequency estimation program 5 for estimating the frequency ofa pressure variation based on an output of the flow sensor; and a RAM 6which functions as a memory. Herein, reference numeral 7 a denotes a CPUfor executing the programs, and reference numeral 7 b denotes a ROM forstoring the programs. In such a structure, a measurement process isperformed such that the predetermined measurement time is equal to orlonger than a single cycle of the vibration frequency of a pump or is amultiple of the cycle. Averaging is performed to suppress variation inthe flow rate.

As another conventional example, the invention disclosed in JapaneseLaid-Open Publication No. 10-197303 is known. As shown in FIG. 65, theflowmeter includes: flow rate detection means 8 for detecting the flowrate; frequency detection means 9 for detecting the frequency of avariation of a flow; and measurement time set means 10 for setting themeasurement time for flow rate detection to about a multiple of onecycle of the variation frequency. Herein, reference numeral 11 denotesflow rate calculation means; 12 denotes measurement start means; 13denotes signal processing means; and 14 denotes a flow rate. With thisstructure, the flow rate is measured in accordance with the frequency ofa variation waveform, whereby a correct flow rate measurement isachieved within a short time period.

As still another conventional example, the invention disclosed inJapanese Laid-Open Publication No. 11-44563 is known. As shown in FIG.66, the flowmeter includes: flow rate detection means 15 for detectingthe flow rate; variation detection means 16 for detecting a variationwaveform of the flow rate of fluid; pulse measurement means 17 forstarting the measurement of the flow rate detection means when analternating component of the variation waveform is in the vicinity ofzero; and flow rate calculation means 18 for processing a signal fromthe flow rate detection means. Herein, reference numeral 19 denotes asignal processing circuit; 20 denotes a time measurement circuit; 21denotes a trigger circuit; 22 denotes a transmission circuit; 23 denotesa comparison circuit; 24 denotes an amplification circuit; 25 denotes aswitch; 26 denotes a measurement start signal circuit; and 27 denotesstart-up means; 28 denotes a flow path. In this structure, the flow ratenear the average of the variation waveforms is measured, whereby acorrect flow rate measurement is achieved within a short time period.

As yet another conventional example, the invention disclosed in JapaneseLaid-Open Publication No. 8-271313 is known. As shown in FIG. 67,whether or not a flow rate value has been detected in flow sensormeasurement (29) is confirmed (30). Until a flow rate is confirmed tohave been detected, the process does not proceed, and the measurementwith the flow sensor is continued. Once a flow rate is found, it isdetermined whether or not the flow rate Q is equal to or higher than apredetermined value (31). When the flow rate Q is equal to or higherthan the predetermined value, it is further determined whether or notthe pressure variation surpasses a predetermined-value Cf (32). When thepressure variation does not surpass a predetermined value Cf,measurement 34 is performed with a piezoelectric film sensor of afluidic flowmeter. When the pressure variation surpasses a predeterminedvalue Cf, it is confirmed if the pressure variation surpasses a secondpredetermined value (33). When the pressure variation surpasses thesecond predetermined value, the measurement (34) is performed with thepiezoelectric film sensor of the fluidic flowmeter. When the pressurevariation does not surpass the second predetermined value, themeasurement (29) is performed with the flow sensor.

As shown in FIG. 68, ultrasonic wave transducers 51 and 52 are providedin a flow rate measurement section 50 so as to oppose the direction of aflow. A control section 53 starts a timer 54, and simultaneously,outputs a transmission signal to a driver circuit 55. An ultrasonic waveis transmitted from the ultrasonic wave transducer 51 which received anoutput of the driver circuit 55. The ultrasonic wave is received by theultrasonic wave transducer 52. A reception detection circuit 56 whichreceived an output of the ultrasonic wave transducer 52 detects theultrasonic wave and stops the timer 54. By such an operation, a time(t1) spent from a time when an ultrasonic wave is transmitted from theultrasonic wave transducer 51 to a time when the wave is detected by theultrasonic wave transducer 52 is measured. Next, a switching circuit 58is operated based on a signal from the control section 53, such that thedriver circuit 55 and the ultrasonic wave transducer 52 are connected,and the reception detection circuit 56 and the ultrasonic wavetransducer 51 are connected. Under this state, transmission andreception of an ultrasonic wave is performed again to measure a time(t2) spent from a time when an ultrasonic wave is transmitted from theultrasonic wave transducer 52 to a time when the wave is detected by theultrasonic wave transducer 51. Based on the two propagation times (t1)and (t2), a calculation section 57 calculates the flow rate from adifference between inverse numbers of the propagation times.

As a conventional example of this type of flowmeter, the inventiondisclosed in Japanese Laid-Open Publication No. 6-269528 is known.

However, in the first of the above conventional inventions, the gas flowrate is measured by using a mean value. Therefore, measurement over along time period is necessary in order to obtain a reliable mean value,and hence such flow rate measurement cannot be performed within a veryshort space of time. In the second of the above conventional inventions,measurement cannot deal with a variation in frequency. In the third andfourth conventional inventions, the method for measuring the flow ratemust be changed according to the presence/absence of a pressurevariation, and it is necessary to provide two means, pressuremeasurement means and flow rate measurement means. In the first to forthinventions, when any abnormality occurs, measurement either cannot beperformed, or can be performed but with decreased accuracy.

Still further, in the above conventional structures, when receiving asignal, if noise which is in synchronization with the measurementfrequency or transmission frequency of an ultrasonic wave is present,the noise is superposed on the signal always at the same phase when thepropagation time is the same. The noise is counted as a measurementerror, and accordingly, correct measurement cannot be performed.Moreover, when the propagation time is varied due to a variation intemperature or the like, the phase at which noise is superposed isvaried, and accordingly, a measurement error is varied. As a result, acorrection value cannot be stabilized. Furthermore, since themeasurement resolution is determined based on the resolution of thetimer 54, simply averaging the measurement values cannot increase theaccuracy of measurement. Thus, it is necessary to increase theresolution of the timer 54 in order to perform measurement whichrequires the resolution. When the operation clock of the timer 54 isincreased so as to have a high frequency, various problems occur, i.e.,an increase in current consumption, an increase in high-frequency noise,and an increase in size of circuitry. Thus, there exists an objective toincrease the resolution of measurement with a timer which operates at alow frequency in order to increase the measurement accuracy.

In the fifth conventional invention, a delay means is inserted between acontrol section and a drive circuit, and the amount of delay is changedsuch that a reflected wave is avoided. In this way, an effect by thereflected wave is reduced. For example, the ultrasonic wave transducerat a receiving side is vibrated due to noise generated when theultrasonic wave is transmitted. Thus, a variation in thesignal-reception detecting time, which is caused by superposition ofreverberation of this vibration on the ultrasonic wave signal, cannot bedecreased.

The present invention seeks to solve the above problems. A firstobjective of the present invention is to set an optimum number of timesthat the measurement is repeated according to a variation of a flow bydetecting a variation frequency using software but without usingadditional variation detecting device, and successively changing thenumber of repetition times. Further, it is sought to achieve ameasurement flow rate in a reliable and accurate manner within a veryshort space of time even when there is a change in pressure variationand variation frequency. A second objective of the present invention isto instantaneously perform highly accurate flow-rate measurements byswitching so as to detect a variation with transmission/reception meanswithout using an additional variation detecting device and performingmeasurement processing in synchronization with a variation. A thirdobjective of the present invention is to perform highly accurateflow-rate measurement, even when any abnormality occurs in themeasurement process, by quickly detecting the abnormality withmeasurement monitoring means and appropriately processing themeasurement. A fourth objective of the present invention is to performflow-rate measurement in a reliable and accurate manner within a veryshort space of time by using instantaneous flow rate measurement meansand digital filter means. A fifth objective of the present invention isto measure a flow rate value with a high accuracy even when there is avariation in temperature.

SUMMARY OF INVENTION

In order to solve the above problems, a flowmeter of the presentinvention includes: transmission/reception means provided in a flow pathfor performing transmission/reception using a state change of fluid;repetition means for repeating the transmission/reception; timemeasurement means for measuring a time or propagation repeated by therepetition means; flow rate detection means for detecting a flow ratebased on a value of the time measurement means; and number-of-timeschange means for changing to a predetermined number of repetition times.The number of repetition times is changed to a number suitable for avariation such that an influence of a variation of a flow can besuppressed. As a result, reliable flow rate measurement with a highaccuracy can be achieved.

The flowmeter includes a pair of transmission/reception means whichutilize propagation of an ultrasonic wave as the state change of fluid.Thus, by using the sonic wave transmission/reception means, propagationof a sonic wave can be performed even when a state change occurs in thefluid. Moreover, by changing the number of repetition times to a numbersuitable for the variation, reliable flow rate measurement with a highaccuracy can be achieved.

The flowmeter includes transmission/reception means which utilizespropagation of heat as the state change of fluid. Thus, by using theheat transmission/reception means, propagation of heat can be performedeven when a state change occurs in the fluid. Moreover, by changing thenumber of repetition times to a number suitable for the variation,reliable flow rate measurement with a high accuracy can be achieved.

The flowmeter includes: elapsed time detection means for detectinghalfway information for a propagation time which is repeatedly measuredby the repetition means; frequency detection means for detecting afrequency of a flow rate variation from information of the elapsed timedetection means; and number-of-times change means for setting ameasurement time so as to be substantially a multiple of the frequencydetected by the frequency detection means. Thus, it is not necessary toprovide specific detection means. Before flow rate detection isperformed, the frequency of a variation is detected from halfwayinformation of the time measurement means, and the measurement time canbe set so as to be a multiple of a cycle of the frequency. As a result,reliable flow rate measurement with a high accuracy can be achieved.

The flowmeter includes: data holding means for holding at least one ormore propagation time of repeatedly-performed transmission/receptionwhich is obtained by the elapsed time detection means; and frequencydetection means for detecting a frequency by comparing the data held bythe data holding means and measured propagation time data. Timemeasurement information at each moment is held and compared by the dataholding means, whereby the frequency can be detected.

The number-of-times change means is operated in predeterminedprocessing. Since the number-of-times change means is operated only whenpredetermined processing is performed, the processing in thenumber-of-times change means can be limited to the required minimum.Thus, the amount of consumed power can be considerably reduced.

The number-of-times change means is operated at each predetermined flowrate measurement. Thus, the number of repetition times is changed atevery predetermined flow rate measurement, whereby the flow rate can bemeasured with a high accuracy in a stable manner even in a flow thatvaries greatly.

The number-of-times change means is performed before flow ratemeasurement processing. Since the number of repetition times is set to apredetermined number of times before flow rate measurement is performed,the flow rate measurement can be performed with a high accuracy in areliable manner.

Predetermined processing includes operations of abnormalitydetermination means for determining abnormality in flow rate from themeasured flow rate; and flow rate management means for managing a usestate for a flow rate from a measured flow rate. Since the number ofrepetition times is changed only when the abnormality determinationprocessing and the flow rate management processing are performed, theprocessing of changing the number of repetition times is limited to therequired minimum. Thus, the amount of consumed power can be decreased.

The number of repetition times which is adjusted the frequency obtainedby the frequency detection means is used in next flow rate measurement.Since the number of repetition times is used in the next measurement, itis not necessary to perform repetitious measurement for frequencydetection. Thus, the amount of consumed power can be decreased.

The number-of-times change means is operated when the measured flow rateis lower than a predetermined flow rate. Since the number of repetitiontimes is changed only when the flow rate is equal to or lower than apredetermined flow rate, but this processing is not performed when theflow rate is high, the amount of consumed power can be decreased.

A flowmeter of the present invention includes: transmission/receptionmeans provided in a flow path for performing transmission/receptionusing a state change of fluid; time measurement means for measuring apropagation time transmitted/received by the transmission/receptionmeans; flow rate detection means for detecting a flow rate based on avalue of the time measurement means; variation detection means formeasuring a variation in the flow path by the transmission/receptionmeans; and measurement control means for starting measurement insynchronization with a timing of a variation of the variation detectionmeans. Since a variation in the flow path is measured bytransmission/reception means, it is not necessary to provide anothersensor for detecting a variation. Thus, the size of the flowmeter can bedecreased, and the structure of the flow path can be simplified. Inaddition, the flow rate can be measured with a high accuracy in areliable manner within a short space of time even when a variationoccurs.

The flowmeter includes a pair of transmission/reception means whichutilize propagation of an ultrasonic wave as the state change of fluid.Thus, a state change of fluid can be detected by the sonic wavetransmission/reception means. Accordingly, the measurement can bestarted in synchronization with a timing of variation. As a result, theflow rate can be measured with a high accuracy in a reliable manner.

The flowmeter includes transmission/reception means which utilizespropagation of heat as the state change of fluid. Thus, a state changeof fluid can be detected by the heat transmission/reception means.Accordingly, the measurement can be started in synchronization with atiming of variation. As a result, the flow rate can be measured with ahigh accuracy in a reliable manner.

The flowmeter includes: first vibration means and second vibration meansprovided in a flow path for transmitting/receiving an sonic wave;switching means for switching an transmission/reception operation of thefirst vibration means and the second vibration means; variationdetection means for detecting a pressure variation in a flow path of atleast one of the first vibration means and the second vibration means;time measurement means for measuring a propagation time of a sonic wavetransmitted/received by the first vibration means and the secondvibration means; measurement control means for performing control where,when an output of the variation detection means shows a predeterminedchange, the measurement means measures a first measurement time T1 ofpropagation from the first vibration means at an upstream side in theflow path to the second vibration means at a downstream side in the flowpath, and when the output of the variation detection means shows achange opposite to the predetermined change, the measurement meansmeasures a second measurement time T2 of propagation from the secondvibration means at a downstream side in the flow path to the firstvibration means at an upstream side in the flow path; flow ratedetection means for calculating a flow rate using the first measurementtime T1 and the second measurement time T2. Since the measurement isperformed at a time when a change in a pressure variation is inverted,the phases of the pressure variation and the timing of the measurementcan be shifted. As a result, a measurement error caused by a pressurevariation can be offset.

The flowmeter includes: measurement control means for performingmeasurement control where measurement of the first measurement time T1is started when an output of the variation detection means shows apredetermined change and measurement of the second measurement time T2is started when the output of the variation detection means shows achange opposite to the predetermined change, and measurement controlwhere, in a next measurement, measurement of the first measurement timeT1 is started when the output of the variation detection means shows achange opposite to the predetermined change and measurement of thesecond measurement time T2 is started when the output of the variationdetection means shows the predetermined change; and flow ratecalculation means for calculating the flow rate by successivelyaveraging a first flow rate obtained by using the previous firstmeasurement time T1 and previous second measurement time T2 whilealternately changing start of measurement and a second flow rateobtained by using next first measurement time T1 and next secondmeasurement time T2. Thus, the timing for measurement is changed asdescribed above in order to perform measurement for the firstmeasurement time T1 and the second measurement time T2. As a result,even when a pressure variation is asymmetrical between a high pressureside and a low pressure side, an influence of such a pressure variationcan be offset.

The flowmeter includes repetition means for performingtransmission/reception a plurality of times. Thus, averaging can beperformed by increasing the number of times of measurement, and as aresult, reliable flow rate measurement can be performed.

The flowmeter includes repetition means for performingtransmission/reception a plurality of times over a time period which isa multiple of a variation cycle. Thus, a pressure variation can beaveraged by measuring according to the variation frequency. As a result,a stable flow rate can be measured.

The flowmeter includes repetition means for startingtransmission/reception measurement when an output of the variationdetection means shows a predetermined change and repeating thetransmission/reception measurement with a sonic wave until the output ofthe variation detection means shows the same change as the predeterminedchange. Thus, the start and stop of the measurement can be madeconformable to the frequency of a pressure variation, Therefore, avariation frequency can be measured, and a pressure variation isaveraged. As a result, a stable flow rate can be measured.

The flowmeter includes selection means for switching a case where thefirst vibration means and second vibration means are used fortransmission/reception of a sonic wave and a case where the firstvibration means and second vibration means are used for detection of apressure variation. Thus, at least one of the first vibration means andthe second vibration means is used for pressure detection. As a result,both the flow rate measurement and the pressure measurement can besimultaneously achieved.

The flowmeter includes variation detection means for detecting acomponent of an alternating component of a variation waveform which isin the vicinity of zero. Thus, a variation is detected in the vicinityof a zero component of the variation, and hence the measurement can bestarted in the vicinity of zero variation within a time to perform flowrate measurement. Therefore, by performing the flow rate measurementwithin a time when a variation is small, the measurement can bestabilized even when a variation occurs in a fluid.

The flowmeter includes: frequency detection means for detecting thefrequency of a signal of the variation detection means; and measurementcontrol means for starting measurement only when the frequency detectedby the frequency detection means is a predetermined frequency. Thus, bystarting the measurement only when the frequency is a predeterminedfrequency, measurement can be performed when a predetermined variationoccurs. As a result, a stable flow rate can be measured.

The flowmeter includes detection cancellation means for automaticallystarting measurement after a predetermined time period when a signal ofthe variation detection means is not detected. Thus, even after avariation disappears, the flow rate can be automatically measured when apredetermined time arrives.

The transmission/reception means and the first and second vibrationmeans include piezoelectric transducers. Thus, when the piezoelectrictransducer is used, an ultrasonic wave is used fortransmission/reception while a pressure variation can be detected.

A flowmeter of the present invention includes: transmission/receptionmeans provided in a flow path for performing transmission/receptionusing a state change of fluid; repetition means for repeating signalpropagation by the transmission/reception means; time measurement meansfor measuring a propagation time during repetition by the repetitionmeans; flow rate detection means for detecting a flow rate based on avalue of the time measurement means; variation detection means fordetecting a fluid variation in a flow path; measurement control meansfor controlling each of the above means; and measurement monitoringmeans for monitoring abnormality in each of the above means. Thus, whenthere is a variation in a flow in the flow path, the flow rate ismeasured according to the variation, while abnormality can be quicklydetected by the measurement monitoring means. Accordingly, handling ofabnormality can be correctly performed, and a measured value becomesstable. As a result, the flow rate can be measured with a high accuracy,and the reliability of the measurement can be improved.

The flowmeter includes a pair of transmission/reception means whichutilize propagation of an ultrasonic wave as the state change of fluid.Since a sonic wave is used, the flow rate measurement can be performedeven when there is a variation in fluid. Further, handling ofabnormality can be correctly performed by the measurement monitoringmeans. As a result, the reliability of the measurement can be improved.

The flowmeter includes transmission/reception means which utilizespropagation of heat as the state change of fluid. Since heat propagationis used, the flow rate measurement can be performed even when there is avariation in fluid. Further, handling of abnormality can be correctlyperformed by the measurement monitoring means. As a result, thereliability of the measurement can be improved.

The flowmeter includes: a pair of transmission/reception means providedin a flow path for transmitting/receiving a sonic wave; repetition meansfor repeating signal propagation of the transmission/reception means;time measurement means for measuring a propagation time of a sonic waveduring the repetition by the repetition means; flow rate detection meansfor detecting the flow rate based on a value of the time measurementmeans; variation detection means for detecting a fluid variation in aflow path; measurement control means for controlling each of the abovemeans; and measurement monitoring means for monitoring abnormality in astart signal which directs start of transmission of a sonic wave at afirst output signal of the variation detection means after a directionsignal of the measurement control means, and abnormality in an endsignal which directs end of repetition of the transmission/reception ofthe sonic wave at second output signal of the variation detection means.Thus, when there is a variation in fluid in the flow path, themeasurement can be performed in synchronization with the frequency ofthe variation, and abnormality can be detected by the measurementmonitoring means. Therefore, a flow rate can be measured with a highaccuracy, and a reliable measured value can be obtained. In addition,handling of abnormality can be correctly performed, and the reliabilityof the measured flow rate value can be improved.

The flowmeter includes measurement monitoring means for directing astart of transmission of a sonic wave after a predetermined time when astart signal is not generated within a predetermined time period after adirection of the measurement control means. Thus, even when there is novariation, and there is no start signal within a predetermined timeperiod, the flow rate can be measured at every predetermined time, andloss of data can be prevented.

The flowmeter includes measurement monitoring means for directing startof transmission of a sonic wave after a predetermined time when a startsignal is not generated within a predetermined time period after adirection of the measurement control means, and for performingmeasurement a predetermined number of repetition times. Thus, even whenthere is no variation, and there is no start signal within apredetermined time period, the flow rate can be measured for apredetermined number of repetition times at every predetermined time,and loss of data can be prevented.

The flowmeter includes measurement monitoring means which does notperform measurement until a next direction of the measurement controlmeans when a start signal is not generated within a predetermined timeperiod after a direction of the measurement control means. By suspendingthe operation until a next measurement direction, unnecessarymeasurement is not performed, whereby the amount of consumed power canbe decreased.

The flowmeter includes measurement monitoring means which terminatesreception of a sonic wave when an end signal is not generated within apredetermined time after a start signal. Since the reception of thesonic wave is forcibly terminated, the measurement is not suspendedwhile waiting for the end signal. Thus, the measurement can proceed to anext process, and a stable measurement operation can be performed.

The flowmeter includes measurement monitoring means which terminatesreception of a sonic wave and outputs a start signal again, when an endsignal is not generated within a predetermined time after a startsignal. Since the reception of the sonic wave is forcibly terminated,the measurement is not suspended while waiting for the end signal.Further, a start signal is output again so as to perform re-measurement.Thus, a stable measurement operation can be performed.

The flowmeter includes measurement monitoring means for stoppingtransmission/reception processing when abnormality occurs in the numberof repetition times. Since the measurement is stopped when the number ofrepetition times is abnormal, only data with a high accuracy can be usedto perform flow rate measurement.

The flowmeter includes measurement monitoring means which compares afirst number of repetition times for measurement where a sonic wave istransmitted from a first one of the pair of transmission/reception meansand received by the second transmission/reception means and a secondnumber of repetition times for measurement where a sonic wave istransmitted from the second transmission/reception means and received bythe first transmission/reception means, and again outputs a start signalwhen the difference between the first and second numbers of repetitiontimes is equal to or greater than a predetermined number of times. Thus,re-measurement is performed when the number of repetition times isgreatly different, whereby measurement with a high accuracy can beperformed with a stable variation frequency.

The flowmeter includes repetition means for setting the number ofrepetition times such that a first number of repetition times formeasurement where a sonic wave is transmitted from first one of the pairof transmission/reception means and received by the secondtransmission/reception means is equal to a second number of repetitiontimes for measurement where a sonic wave is transmitted from the secondtransmission/reception means and received by the firsttransmission/reception means. Thus, by employing the same number ofrepetition times, a predetermined flow rate measurement can be performedeven when a variation frequency is unstable.

The flowmeter includes measurement monitoring means for monitoring thenumber of times that a start signal is output again so as to be limitedto a predetermined number of times or less, such that the outputting ofthe start signal is not permanently repeated. Thus, by limiting thenumber of times of re-measurement, the processing is prevented fromcontinuing permanently. As a result, stable flow rate measurement can beperformed.

The flowmeter measures a flow rate from a difference between inversenumbers of propagation times measured while repeatingtransmission/reception of an ultrasonic wave a plurality of number oftimes. Thus, when an ultrasonic wave is used, transmission/reception canbe performed without being affected by a variation frequency in the flowpath. Further, the flow rate is measured from the difference of inversenumbers of propagation times which are measured while repeating thetransmission/reception, whereby even a variation of a long cycle can bemeasured by units of one cycle. In addition, the difference of thepropagation times which is caused by a variation can be offset by usingthe difference of inverse numbers.

A flowmeter of the present invention includes: instantaneous flow ratedetection means for detecting an instantaneous flow rate; fluctuationdetermination means for determining whether or not there is a pulse in aflow rate value; and at least one or more stable flow rate calculationmeans for calculating a flow rate value using different means accordingto a determination result of the fluctuation determination means. Thus,by determining a variation in a measured flow rate and switching theflow rate calculation means, the flow rate can be calculated by one flowrate measurement means according to the amount of the variation in areliable manner.

A flowmeter of the present invention includes: instantaneous flow ratedetection means for detecting an instantaneous flow rate; filterprocessing means for performing digital-filter processing of a flow ratevalue; and stable flow rate calculation means for calculating a flowrate value using the filter processing means. Thus, when the digitalfilter processing is performed, a calculation equivalent to an averagingprocess can be performed without using a large number of memories forstoring data. Moreover, the filter characteristic can be modified bychanging one variable, i.e., a filter coefficient.

The flowmeter includes stable flow rate calculation means forcalculating a stable flow rate value using the digital filter processingmeans when the fluctuation determination means determines that there isa pulse. Thus, when a pulse occurs, a sharp filter characteristic isselected so as to render a large pulse stable, and the filter processingcan be performed only when a pulse occurs.

The fluctuation determination means determines whether or not avariation amplitude of a flow rate value is equal to or greater than apredetermined value. Thus, a pulse can be determined based on thevariation amplitude of the pulse, whereby the filter processing can bemodified according to the variation amplitude of the pulse.

The filter processing means modifies a filter characteristic accordingto a variation amplitude of a flow rate value. Since the filtercharacteristic is changed according to the variation amplitude of a flowrate value, the filter characteristic can be quickly modified so as tobe a sufficiently relaxed filter characteristic that allows a variationaccording to a variation in a flow rate when the variation is small, andwhen the variation is large, a sharp filter characteristic is selectedsuch that a variation of the flow rate due to a pulse can besignificantly suppressed.

The filter processing is performed only when a flow rate value detectedby the instantaneous flow rate detection means is low. Since the filterprocessing is performed only when the flow rate is low, a variation ofthe flow rate can be quickly handled when the flow rate is high, and aninfluence of fluctuation which is caused when the flow rate is low canbe significantly suppressed.

Filter processing means modifies a filter characteristic according to aflow rate value. Since the filter characteristic is changed according tothe flow rate value, filter processing is performed only when the flowrate is low, a variation of the flow rate can be quickly handled whenthe flow rate is high, and an influence of fluctuation which is causedwhen the flow rate is low can be significantly suppressed.

Filter processing means modifies a filter characteristic according to aninterval of a flow rate time of the instantaneous flow rate detectionmeans. Thus, by changing the filter characteristic according to aninterval of the flow rate detection time, the variation can besuppressed with a relaxed filter characteristic when the measurementinterval is short or with a sharp filter characteristic when themeasurement interval is long.

The flowmeter includes filter processing means which modifies a filtercharacteristic such that a cut-off frequency of the filtercharacteristic becomes high when the flow rate is high, and whichmodifies a filter characteristic such that the filter characteristic hasa low cut-off frequency when the flow rate is low. Thus, the responsecharacteristic is increased when the flow rate is high, and thefluctuation is suppressed when the flow rate is low.

A filter characteristic is modified such that a variation amplitude of aflow rate value calculated by the stable flow rate calculation means iswithin a predetermined value range. Since the filter characteristic ismodified such that the variation amplitude is within a predeterminedvalue range, the flow rate variation can be suppressed so as to bealways equal to or smaller than a predetermined value.

An ultrasonic wave flowmeter which detects a flow rate by using anultrasonic wave is used as the instantaneous flow rate detection means.Thus, by using an ultrasonic wave flowmeter, an instantaneous flow ratecan be measured even when a large flow rate variation occurs. Thus, fromthe flow rate value, a stable flow rate can be calculated.

A heat-based flowmeter is used as the instantaneous flow rate detectionmeans. When the heat-based flowmeter is used, an instantaneous flow ratecan be measured even when a large flow rate variation occurs. Thus, astable flow rate can be calculated from the flow rate value.

A flowmeter of the present invention includes: a flow rate measurementsection through which fluid to be measured flows; a pair of ultrasonicwave transducers provided in the flow rate measurement section fortransmitting/receiving an ultrasonic wave; a driver circuit for drivingone of the ultrasonic wave transducers; a reception detecting circuitconnected to the other ultrasonic wave transducer for detecting anultrasonic wave signal; a timer for measuring a propagation time of theultrasonic wave signal; a control section for controlling the drivercircuit; a calculation section for calculating a flow rate from anoutput of the timer; and periodicity change means for sequentiallychanging a driving method of the driver circuit, wherein the controlsection controls the periodicity change means such that the frequency offlow rate measurement is sequentially a changed in order to prevent thefrequency of the measurement from being constant. Thus, noise which isin synchronization with a measurement frequency or a transmissionfrequency of an ultrasonic wave is never in the same phase but dispersedwhen the ultrasonic wave is received. Therefore, a measurement error canbe decreased.

A flowmeter of the present invention includes: a flow rate measurementsection through which fluid to be measured flows: a pair of ultrasonicwave transducers provided in the flow rate measurement section fortransmitting/receiving an ultrasonic wave; a driver circuit for drivingone of the ultrasonic wave transducers; a reception detecting circuitconnected to the other ultrasonic wave transducer for detecting anultrasonic wave signal; a control section for controlling the drivercircuit for a predetermined number of times so as to drive theultrasonic wave transducers again in response to an output of thereception detecting circuit; a timer for measuring an elapsed time forthe predetermined number of times; a calculation section for calculatinga flow rate from an output of the timer; and periodicity change meansfor sequentially changing a driving method of the driver circuit,wherein, in response to receipt of an output of the reception detectingcircuit, the control section changes the periodicity change means atevery receipt detection of the reception detecting circuit such that thefrequency is not kept constant. Thus, the periodicity change means canbe operated with a plurality of settings for measurement within one flowrate measurement cycle. As a result, noise is dispersively averaged in ameasurement result, and a reliable measurement result can be obtained.

The periodicity change means switchingly outputs a plurality of outputsignals having different frequencies; and the control section changes afrequency setting of the periodicity change means at every measurementso as to change a driving frequency of the driver circuit. Thus, bychanging the driving frequency, the reception detecting timing can bechanged by a time corresponding to a frequency variation of a drivingsignal. Thus, noise which is in synchronization with a measurementfrequency or a transmission frequency of an ultrasonic wave is never inthe same phase but dispersed when the ultrasonic wave is received.Therefore, a measurement error can be decreased.

The periodicity change means outputs output signals having the samefrequency and a plurality of different phases; and the control sectionoperates such that a phase setting for the output signal of theperiodicity change means is changed at every measurement and a drivingphase of the driver circuit is changed. Thus, by changing the drivingphase, the reception detecting timing can be changed by a timecorresponding to a phase variation of a driving signal. Thus, noisewhich is in synchronization with a measurement frequency or atransmission frequency of an ultrasonic wave is never in the same phasebut dispersed when the ultrasonic wave is received. Therefore, ameasurement error can be decreased.

The frequency change means outputs a synthesized signal obtained bysuperposing a signal of a first frequency which is an operationfrequency of the ultrasonic wave transducers and a signal of a secondfrequency which is different from the first frequency; and the controlsection outputs, through the driver circuit, at every measurement, anoutput signal where the second frequency of the periodicity change meansis changed. Thus, the periodicity of the flow rate measurement can bedisturbed. As a result, noise which is in synchronization with ameasurement frequency or a transmission frequency of an ultrasonic waveis never in the same phase but dispersed when the ultrasonic wave isreceived. Therefore, a measurement error can be decreased.

The periodicity change means switches the setting between a case wherethere is a second frequency and a case where there is not a secondfrequency. Thus, since the reception detecting timing is changed bychanging the vibration of the ultrasonic wave transducer that transmitsan ultrasonic wave, the periodicity of the flow rate measurement can bedisturbed. As a result, noise which is in synchronization with ameasurement frequency or a transmission frequency of an ultrasonic waveis never in the same phase but dispersed when the ultrasonic wave isreceived. Therefore, a measurement error can be decreased.

The periodicity change means changes the phase setting of the secondfrequency. Thus, since the reception detecting timing is changed bychanging the vibration of the ultrasonic wave transducer that transmitsan ultrasonic wave, the periodicity of the flow rate measurement can bedisturbed. As a result, noise which is in synchronization with ameasurement frequency or a transmission frequency of an ultrasonic waveis never in the same phase but dispersed/averaged when the ultrasonicwave is received. Therefore, a measurement error can be decreased.

The periodicity change means changes the frequency setting of the secondfrequency. Thus, since the reception detecting timing is changed bychanging the vibration of the ultrasonic wave transducer that transmitsan ultrasonic wave, the periodicity of the flow rate measurement can bedisturbed. As a result, noise which is in synchronization with ameasurement frequency or a transmission frequency of an ultrasonic waveis never in the same phase but dispersed when the ultrasonic wave isreceived. Therefore, a measurement error can be decreased.

The periodicity change means includes a delay section capable of settingdifferent delay times; and the control section changes the setting ofthe delay at each transmission of an ultrasonic wave or at each receiptdetection of an ultrasonic wave. Thus, in one measurement operation,reverberation of an ultrasonic wave transmitted in animmediately-previous measurement and an influence of tailing of theultrasonic wave transducers can be dispersed, whereby a measurementerror can be decreased.

The cycle width changed by the periodicity change means is a multiple ofa value corresponding to a variation of a propagation time which iscaused by a measurement error. Thus, when the measured values for allthe settings are summed up and averaged, an error can be suppressed to aminimum.

The cycle width changed by the periodicity change means is equal to acycle of a resonance frequency of the ultrasonic wave transducers. Thus,in a value obtained by summing up and averaging the measured values forall the settings, a measurement error which may be caused byreverberation of an ultrasonic wave or tailing of the ultrasonic wavetransducers is minimum. Thus, the measurement error can be decreased.

The order of patterns for changing the periodicity is the same for bothmeasurement in a upstream direction and measurement in a downstreamdirection. Thus, the measurement with an ultrasonic wave transmittedtoward the upstream side and the measurement with an ultrasonic wavetransmitted toward the downstream side are always performed under thesame conditions. Hence, even when there is a variation in the flow rate,a reliable measurement result can be obtained.

The predetermined number of times is a multiple of a change number ofthe periodicity change means. Thus, all the setting values of theperiodicity change means are uniformly set within a single flow ratemeasurement operation. As a result, a reliable measurement result can beobtained.

A flowmeter of the present invention includes: a flow rate measurementsection through which fluid to be measured flows; a pair of ultrasonicwave transducers provided in the flow rate measurement section fortransmitting/receiving an ultrasonic wave; a driver circuit for drivingone of the ultrasonic wave transducers; a reception detecting circuitconnected to the other ultrasonic wave transducer for detecting anultrasonic wave signal; a first timer for measuring a propagation timeof the ultrasonic wave signal; a second timer for measuring a timeperiod from when the reception detecting circuit detects a receipt towhen a value of the first timer changes; a control section forcontrolling the driver circuit; and a calculation section forcalculating a flow rate from outputs of the first timer and secondtimer, wherein the second timer is corrected by the first timer. Sincethe flow rate calculation is performed using a value obtained bysubtracting a value of the second timer from a value of the first timer,the time measurement resolution is equal to that of the second timer.Further, since the operation time of the second timer is very short, theamount of consumed power can be decreased. A thus, a flowmeter with highresolution which consumes a small amount of power can be realized.Furthermore, a correct flow rate measurement can be achieved so long asthe second timer operates in a stable manner after the correction ismade until flow rate measurement is performed. Therefore, a correctmeasurement can be performed even when the second timer lacks long termstability. Thus, a flowmeter with a high accuracy can be realized withordinarily-employed parts.

The flowmeter includes a temperature sensor, wherein the second timer iscorrected by the first timer when an output of the temperature sensorvaries so as to be equal to or greater than a set value. Thus, even whenthe second timer has a characteristic which varies according to avariation in the temperature, the second timer is corrected every time atemperature variation occurs, whereby correct measurement can beperformed. Furthermore, such a correction is made only when it isnecessary, the amount of consumed power can be decreased.

The flowmeter includes a voltage sensor for detecting the power supplyvoltage of the circuit, wherein the second timer is corrected by thefirst timer when an output of the voltage sensor varies so as to beequal to or greater than a set value. Thus, even when the second timerhas a characteristic which varies according to a variation in the powersupply voltage, the second timer is corrected every time a variationoccurs in the power supply voltage, whereby correct measurement can beperformed. Furthermore, it is not necessary to periodically make acorrection, the amount of consumed power can be decreased.

A flowmeter of the present invention includes: a flow rate measurementsection through which fluid to be measured flows; a pair of ultrasonicwave transducers provided in the flow rate measurement section fortransmitting/receiving an ultrasonic wave; a driver circuit for drivingone of the ultrasonic wave transducers; a reception detecting circuitconnected to the other ultrasonic wave transducer for detecting anultrasonic wave signal; a control section for controlling the drivercircuit for a predetermined number of times so as to drive theultrasonic wave transducers again in response to an output of thereception detecting circuit; a timer for measuring an elapsed time forthe predetermined number of times: a calculation section for calculatinga flow rate from an output of the timer; and periodicity stabilizingmeans for sequentially changing a driving method of the driver circuit,wherein the control section controls the periodicity stabilizing meanssuch that a measurement frequency is always maintained to be constant.With this structure, the measurement frequency is always constant evenwhen a propagation time varies. Thus, noise which is in synchronizationwith a measurement frequency or a transmission frequency of anultrasonic wave is always in the same phase when the ultrasonic wave isreceived regardless of a variation in the propagation time. Therefore, ameasurement error can be maintained as a constant value. Accordingly,the flow rate measurement can be stabilized even when the noise has avery long periodic noise.

The control section includes periodicity stabilizing means formed by adelay section capable of setting different delay times; and the controlsection changes an output timing of the driver circuit by switching thedelay times. Since the measurement frequency is maintained to beconstant by changing the delay time, the measurement frequency can bestabilized without giving an influence to driving of the ultrasonic wavetransducers.

The control section controls the driver circuit such that a measurementtime is maintained to be constant. Thus, the measurement frequency canbe maintained to be constant with a simple calculation withoutcalculating a propagation time for each ultrasonic wave transmission.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram showing a flowmeter according to embodiment 1of the present invention.

FIG. 2 is a timing chart illustrating an operation of the flowmeter ofembodiment 1.

FIG. 3 is a variation waveform graph for illustrating the operation ofthe flowmeter of embodiment 1.

FIG. 4 is a flowchart showing an operation of the flowmeter ofembodiment 1.

FIG. 5 is a flowchart showing an operation of the flowmeter ofembodiment 1.

FIG. 6 is a flowchart showing an operation of a flowmeter according toembodiment 2 of the present invention.

FIG. 7 is a block diagram showing a flowmeter according to embodiment 3of the present invention.

FIG. 8 is a flowchart showing an operation of the flowmeter ofembodiment 3.

FIG. 9 is another flowchart showing an operation of the flowmeter ofembodiment 3.

FIG. 10 is a block diagram showing a flowmeter according to embodiment 4of the present invention.

FIG. 11 is a flowchart showing an operation of the flowmeter ofembodiment 4.

FIG. 12 is a block diagram showing a flowmeter according to embodiment 5of the present invention.

FIG. 13 is a block diagram showing a flowmeter according to embodiment 6of the present invention.

FIG. 14 is a structure diagram of the flowmeter of embodiment 6.

FIG. 15 is a timing chart showing an operation of the flowmeter ofembodiment 6.

FIG. 16 is another timing chart showing an operation of the flowmeter ofembodiment 6.

FIG. 17 is a flowchart showing an operation of the flowmeter ofembodiment 6.

FIG. 18 is another flowchart showing an operation of the flowmeter ofembodiment 6.

FIG. 19 is another block diagram of the flowmeter of embodiment 6.

FIG. 20 is a timing chart showing an operation of a flowmeter accordingto embodiment 7 of the present invention.

FIG. 21 is a flowchart showing an operation of the flowmeter accordingto embodiment 7.

FIG. 22 is a timing chart showing an operation of a flowmeter ofembodiment 8 of the present invention.

FIG. 23 is a flowchart showing an operation of the flowmeter accordingto embodiment 8.

FIG. 24 is a block diagram showing a flowmeter according to embodiment 9of the present invention.

FIG. 25 is a timing chart showing an operation of the flowmeteraccording to embodiment 9.

FIG. 26 is a block diagram showing a flowmeter according to embodiment10 of the present invention.

FIG. 27 is a flowchart showing an operation of the flowmeter accordingto embodiment 10.

FIG. 28 is a timing chart showing an operation of a flowmeter ofembodiment 11 of the present invention.

FIG. 29 is a timing chart showing an operation of a flowmeter ofembodiment 12 of the present invention.

FIG. 30 is a timing chart showing an operation of the flowmeter ofembodiment 12.

FIG. 31 is another timing chart showing an operation of the flowmeter ofembodiment 12.

FIG. 32 is a timing chart showing an operation of a flowmeter ofembodiment 13 of the present invention.

FIG. 33 is a timing chart showing an operation of a flowmeter ofembodiment 14 of the present invention.

FIG. 34 is a flowchart showing an operation of a 15 flowmeter ofembodiment 15 of the present invention.

FIG. 35 is a flowchart showing an operation of a flowmeter of embodiment16 of the present invention.

FIG. 36 is a flowchart showing an operation of a flowmeter of embodiment17 of the present invention.

FIG. 37 is a flowchart showing an operation of a flowmeter of embodiment18 of the present invention.

FIG. 38 is a flowchart showing an operation of a flowmeter of embodiment19 of the present invention.

FIG. 39 is a flowchart showing an operation of a flowmeter of embodiment20 of the present invention.

FIG. 40 is a flowchart showing an operation of a flowmeter of embodiment21 of the present invention.

FIG. 41 is a block diagram showing a flowmeter according to embodiment22 of the present invention.

FIG. 42 is a block diagram showing a flowmeter according to embodiment23 of the present invention.

FIG. 43 is a flowchart showing an operation of the flowmeter accordingto embodiment 23.

FIG. 44 is a flowchart showing a digital filter processing of theflowmeter of embodiment 23.

FIG. 45 is a filter characteristic graph for illustrating an operationof the flowmeter of embodiment 23.

FIG. 46 is a flowchart showing an operation of a flowmeter of embodiment24 of the present invention.

FIG. 47 is a flowchart showing an operation of a flowmeter of embodiment25 of the present invention.

FIG. 48 is a flowchart showing an operation of a flowmeter of embodiment26 of the present invention.

FIG. 49 is a flowchart showing an operation of a flowmeter of embodiment27 of the present invention.

FIG. 50 is a flowchart showing an operation of a 30 flowmeter ofembodiment 28 of the present invention.

FIG. 51 is a block diagram showing a flowmeter according to embodiment29 of the present invention.

FIG. 52 is a block diagram showing a flowmeter according to embodiment30 of the present invention.

FIG. 53 is a block diagram of periodicity change means of the flowmeterof embodiment 30.

FIG. 54 is a timing chart for showing a reception detection timing ofthe flowmeter of embodiment 30.

FIG. 55 is a block diagram showing a flowmeter according to embodiment31 of the present invention.

FIG. 56 is a block diagram of periodicity change means of the flowmeterof embodiment 31.

FIG. 57A is a block diagram of periodicity change means of the flowmeterof embodiment 32 of the present invention.

FIG. 57B is a timing chart for showing a reception detection timing ofthe flowmeter of embodiment 32.

FIG. 58 is a block diagram of periodicity change means of the flowmeterof embodiment 33 of the present invention.

FIG. 59 is a block diagram of periodicity change means of the flowmeterof embodiment 34 of the present invention.

FIG. 60 is a block diagram of periodicity change means of the flowmeterof embodiment 35 of the present invention.

FIG. 61 is a block diagram showing a flowmeter according to embodiment36 of the present invention.

FIG. 62 is a diagram showing operations of a first timer and a secondtimer according to embodiment 36 of the present invention.

FIG. 63 is a block diagram showing a flowmeter according to embodiment37 of the present invention.

FIG. 64 is a block diagram showing a conventional flowmeter.

FIG. 65 is a block diagram showing another conventional flowmeter.

FIG. 66 is a block diagram showing still another conventional flowmeter.

FIG. 67 is a flowchart showing an operation of still anotherconventional flowmeter.

FIG. 68 is a block diagram showing a conventional flowmeter.

DETAILED DESCRIPTION

Hereinafter, embodiments of the present invention will be described withreference to the drawings.

Embodiment 1

FIG. 1 is a block diagram showing a flowmeter according to embodiment 1of the present invention. In FIG. 1, reference numeral 117 is firsttransmission/reception means which is provided in a flow path 116 andwhich functions as transmission/reception means fortransmitting/receiving a signal by using propagation of a sonic wave asa state change in a fluid. Reference numeral 118 is secondtransmission/reception means as transmission/reception means. Referencenumeral 119 is repetition means for repeating signal propagation betweenthe first transmission/reception means 117 and the secondtransmission/reception means 118. Reference numeral 120 is timemeasurement means for measuring a propagation time of a sonic wavepropagated during the repetition in the repetition means 119. Referencenumeral 121 is flow rate detection means for detecting the flow ratebased on a value from the time measurement means 120. Reference numeral122 is number-of-times change means for successively making a change toa predetermined number of repetition times. Furthermore, an elapsed timedetection means 123 for detecting halfway information concerning thepropagation time of propagation repeated in the repetition section 119,frequency detection means 124 for detecting the frequency of a variationin flow rate from the information of the elapsed time detection means123, and number-of-times change means 122 for making a change to asetting such that the measurement time is substantially a multiple ofone cycle of the frequency detected in the frequency detection means124, are included. Herein, data stored in data holding means 125 holdsone propagation time of transmission/reception which has been obtainedby elapsed time detection means 123. The frequency is detected by thefrequency detection means 124 by comparing data held by the data holdingmeans 125 with data of a measured propagation time. Reference numeral126 is switching means for switching operations oftransmission/reception between the first transducer 117 and the secondtransducer 118. Reference numeral 127 is a transmitter for transmittingan ultrasonic signal. Reference numeral 128 is a receiver for receivingan ultrasonic signal.

Next, an operation and function of the flowmeter are described withreference to FIGS. 2 through 5. As shown in FIG. 2, in a flowmeter ofthe present invention, measurement begins in response to a repetitionstart signal. An input signal is input to the first transducer, and thefirst transducer vibrates to transmit a sonic wave. The sonic wave isreceived by the second transducer. The propagation time of the sonicsignal is measured by the time measurement means based on apredetermined clock count. The delay time in the drawing is a fixedwaiting time which is provided for waiting for attenuation of the soundwave. After detecting a counted value of the delay time and propagationtime as C_(i), an input signal is again input to the first transducer totransmit a sonic wave, and the sonic wave is received by the secondtransducer. This repetitive measurement is performed a predeterminednumber of times. The count number received by the second transducer,C_(i)+₁, is compared with the previous count number C_(i), so as todetect the frequency of repetitively occurring flow rate variation. Forexample, as shown in FIG. 3, comparing points V5 and V6 of the flow ratevariation, the difference between the count numbers, C₅-C₆, is anegative value. However, comparing points V6 and V7 of the flow ratevariation, the difference between the count numbers, C₆-C₇, is apositive value. That is, the sign is inverted. Then, again, the timewhen the difference between the count values, C_(i)-C_(i+1), changesfrom a negative value to a positive value is determined for eachrepetition according to the processing shown in the flowchart of FIG. 4,whereby the frequency is detected.

The flowchart of FIG. 4 shows a flow of frequency detection.Specifically, FIG. 4 shows that one time measurement counter is held forcomparison with the next time measurement counter, whereby a change in aflow rate variation is detected. Furthermore, as shown in FIG. 5, theprocessing 1 and number-of-times change means are performed before everyflow rate measurement. In this way, the frequency is detected, and inthat cycle, measurement of a propagation time is repeatedly performed.Hence, the flow rate is measured without being affected by a variationbecause the measured flow rate is averaged by measuring at an intervalof one cycle of the variation even when there is a variation in theflow. When measurement is performed not only within one cycle but alsoover a plurality of cycles, the flow rate measurement can be performedwith a high accuracy in a more reliable manner.

The method for detecting the frequency by use of an inversion of thesign of the difference between the count values has been described.However, detection of the frequency may be achieved by detecting a pointat which the difference is maximum, or by detecting a point at which acount value nearest to the held count value is counted again. Further,the detection method which utilizes a comparison with one held data hasbeen described. However, the frequency may be detected by using anautocorrelation or frequency analysis method with a plurality of helddata, or by obtaining a difference among a plurality of held data asdescribed above.

Thus, the flowmeter does not require means for detecting a variation ina flow, i.e., the structure thereof can be simplified. The frequency isdetected from the halfway information of the time measurement meansbefore the flow rate detection is performed such that the time for therepetitive measurement is a multiple of one cycle of the variationfrequency. Therefore, the flow rate measurement can be performed with ahigh accuracy in a reliable manner. Time measurement information at eachmoment is held and compared by the data holding means, whereby thefrequency can be detected at each occasion. Furthermore, by successivelychanging the number of repetition times, an influence caused due to achange in a variation of a flow can be suppressed, hence a reliable flowrate measurement can be achieved. Still further, the number ofrepetition times is set so as to be a multiple of one cycle of thevariation frequency before the flow rate measurement is performed. Thus,a variation in a flow is averaged, and as a result, the flow ratemeasurement can be performed with a high accuracy in a reliable manner.

Embodiment 2

FIG. 6 is a flowchart showing an operation of a flowmeter according toembodiment 2 of the present invention. Embodiment 2 is different fromembodiment 1 in that the process of embodiment 2 is structured such thatthe number of repetition times which is determined according to afrequency obtained by the frequency detection means is used in the nextflow rate measurement. The structure of the flowmeter in embodiment 2 isthe same as that shown in FIG. 1.

As shown in FIG. 6, measurement of propagation time T1 of an ultrasonicwave propagating from the first transducer is performed, while timemeasurement information C_(i) of the measurement means at that time isheld in the data holding means. Measurement of propagation time T2 of anultrasonic wave propagating from the second transducer is thenperformed, and the flow velocity and flow rate are calculated from timesT1 and T2. Then, the frequency of a flow variation is detected from theheld time measurement information C_(i) by using a method described inembodiment 1, and the number of repetition times for the nextmeasurement is changed such that the detected frequency is reflected inthe next measurement.

In this way, the detected frequency of a flow variation is used in thenext measurement, whereby the flow rate measurement and the frequencycan be simultaneously performed. It is not necessary to performrepetitive measurement of sonic wave propagation only for detecting thevariation frequency, and accordingly, the current consumption can bedecreased. The number of repetition times can be set according to thevariation frequency, so that the variation is averaged, and the flowrate can be measured with a high accuracy in a reliable manner.

Embodiment 3

FIG. 7 is a block diagram of a flowmeter according to embodiment 3 ofthe present invention. Embodiment 3 is different from embodiment 1 inthat the flowmeter of embodiment 3 includes: flow rate variationidentification means 129 to determine the magnitude of a flow ratevariation detected by the flow rate detection means 121; andnumber-of-times change means 122 for changing the number of repetitiontimes such that the flow rate variation identified by the flow ratevariation identification means 129 is decreased, and that the flow ratevariation identification means 129 operates using a standard deviationof the flow rate.

As shown in the flowchart of FIG. 8, the flow rate Qi is first measured.When the flow rate is equal to or higher than a predetermined value Qm(for example, 100 liter/hour), the number of repetition times is keptunchanged. When the flow rate is lower than a predetermined value Qm,standard deviation Hi is obtained based on n pieces of data before themeasured flow rate Qi. When the standard deviation Hi is equal to orgreater than a predetermined value Hm (for example, 1 liter/hour), thenumber of repetition times is changed. At this time, the number ofrepetition times is changed (increased) from an initial value 10 by apredetermined value dK (for example, two times). When the number ofrepetition times is equal to or greater than a predetermined number oftimes, Km, the number of repetition times is reset to the initial valueand changed again from the first.

In this way, only when the measured flow rate is lower than apredetermined flow rate, the number of repetition times is changed,whereby the process is stopped when the flow rate is high, andaccordingly, the consumed power is decreased. When the standarddeviation is equal to or greater than a predetermined value, the numberof repetition times is changed such that the flow rate variation becomessmall, whereby the flow rate measurement can be achieved with a highaccuracy in a reliable manner even when there is a variation in a flow.A flow rate variation is identified by using the standard deviation,whereby a variation can be correctly detected. Further, the number ofrepetition times is gradually changed in an incremental manner, wherebythe necessary number of repetition times can be determined because therepetition number can be examined from a small number of times.

As shown in FIG. 9, only when the measure flow rate is equal to or lowerthan a predetermined flow rate, and the standard deviation is equal toor higher than a predetermined value, the number-of-repetition-timeschange means operates, so that the number of times that the operation ofchanging the number of times is performed is further restricted, andaccordingly, the consumed power can be decreased.

In the above-described method, the number of times is changed in agradual incremental manner. However, if the standard deviation when thenumber of times is changed is increased, the number of times may bedecrementally changed. In such a case, when the direction of change ofthe number of times, i.e., increment or decrement, is controlledaccording to a variation of the standard deviation, measurement can beperformed in a more reliable manner. Further, when an electric batterycell is used as the power source of the flowmeter, the consumed power isdecreased, and accordingly, the flowmeter can be used over a long timeperiod.

Embodiment 4

FIG. 10 is a block diagram of a flowmeter according to embodiment 4 ofthe present invention. Embodiment 4 is different from embodiment 1 inthat the flowmeter of embodiment 4 includes abnormality identificationmeans 130 and flow rate management means 131. The number of-times changemeans operates during the execution of processing in the abnormalityidentification means 130 as predetermined processing and during theexecution of processing in the flow rate management means 131.

As in the flowchart shown in FIG. 11, the number of repetition times ischanged during the execution of the processing in the abnormalityidentification means, and during the execution of processing in the flowrate management means. The number of repetition times can be changedonly when it is necessary, so that the consumed power can be decreased.That is, in consideration of an urgency of executing abnormalityidentification, the flow rate should be measured within a short space oftime. In a flow rate measurement method which is executed in accordancewith a variation in a flow, abnormality identification is slow. When thenumber of repetition times is changed in accordance with the variationfrequency before performing measurement, the measurement can be achievedwithin a short space of time. Furthermore, the flow rate management isperformed for managing what load is used in the downstream side. It isnecessary to detect and identify the flow rate within a short space oftime. Similar to abnormality identification, the number of repetitiontimes is changed so as to conform to the variation frequency beforeperforming measurement, whereby the measurement can be achieved within ashort space of time.

Embodiment 5

FIG. 12 is a block diagram of a flowmeter according to embodiment 5 ofthe present invention. Embodiment 5 is different from embodiment 1 inthat the transmission/reception means utilizes propagation of heat fordetecting a change in the state of fluid. Reference numeral 132 denotesa heater for emitting heat, and reference numeral 133 denotes atemperature sensor for receiving the heat.

Also in the case where the transmission means and the reception meansutilize heat, the variation frequency can be detected from the variationin a heat propagation time, and accordingly, the structure can besimplified. Further, the times to perform repetitive measurement can bechanged. When the number of repetition times is a multiple of one cycleof the variation frequency, the flow rate measurement can be performedwith a high accuracy in a reliable manner. Furthermore, the number oftimes of successive repetition can be changed according to a change in aflow variation, and an influence of variation can be quickly suppressed,whereby the flow rate measurement can be performed in a reliable manner.Further still, immediately before performing flow rate measurement, thenumber of repetition times is set to a multiple of one cycle of thevariation frequency, and accordingly, a variation of a flow is averaged,so that the flow rate measurement can be performed with a high accuracyin a reliable manner.

Embodiment 6

FIG. 13 is a block diagram showing a flowmeter according to embodiment 6of the present invention. In FIG. 13, reference numeral 223 denotes afirst piezoelectric transducer, which is first vibration means oftransmission/reception means that is provided in a flow path 224 andthat performs transmission/reception using an ultrasonic wave as a statechange of fluid. Reference numeral 225 denotes a second piezoelectrictransducer, which is second vibration means of transmission/receptionmeans that performs transmission/reception of an ultrasonic wave.Reference numeral 226 denotes a switch (switching means) for switching atransmission/reception operation of the first piezoelectric transducerand the second piezoelectric transducer. Reference numeral 227 denotestime measurement means for measuring by a sing-around method apropagation time of a sonic wave repeatedly transmitted/received betweenthe first piezoelectric transducer 223 and the second piezoelectrictransducer 225. Reference numeral 228 denotes flow rate detection meansfor detecting the flow rate based on a value of the time measurementmeans. Reference numeral 229 denotes variation detection means formeasuring a pressure variation in the flow path by using the firstpiezoelectric transducer 223 and the second piezoelectric transducer225. Reference numeral 230 denotes measurement control means forstarting measurement in synchronization with a timing of the pressurevariation detected by the variation detection means.

The measurement control means 230 performs measurement control such thatmeasurement of a first measurement time T1 is started at a rising edgeof an output of the variation detection means 229, and measurement of asecond measurement time T2 is started at a falling edge of the output ofthe variation detection means 229. The measurement control means 230performs measurement start control such that, for the next measurement,measurement of a first measurement time T1 is performed at a fallingedge of the output of the variation detection means, and measurement ofa second measurement time T2 is performed at a rising edge of the outputof the variation detection means. The flow rate measurement means 228calculates the flow rate by successively averaging the first flow rateobtained using the previous first measurement time T1 and the secondmeasurement time T2, while alternately changing the start ofmeasurement, with the second flow rate obtained using the next firstmeasurement time T1 and the second measurement time T2. Referencenumeral 231 denotes a selection switch as selection means for switchingbetween a transmission/reception operation of an ultrasonic wave byusing the second piezoelectric transducer and a pressure variationdetection operation. Reference numeral 232 denotes a transmitter of anultrasonic signal. Reference numeral 233 denotes a receiver of anultrasonic signal. Reference numeral 234 denotes repetition means forperforming a sing around measurement. Reference numeral 235 denotesoperation check means for checking the operations of the firstpiezoelectric transducer and the second piezoelectric transducer.

Next, an operation and function are described with reference to FIGS. 14through 19. In a flow path having a structure shown in FIG. 14,propagation time T1 of an ultrasonic wave from the first piezoelectrictransducer 223 to the second piezoelectric transducer 225 is T1=L/(C+Vcos θ). Propagation time T2 of an ultrasonic wave from the secondpiezoelectric transducer 225 to the first piezoelectric transducer 223is T2=L/(C−V cos θ). Herein, V denotes a flow velocity in the flow path,C denotes acoustic velocity, and θ denotes an angle of inclination. Withthe difference of inverse numbers of T1 and T2, the flow velocity V isobtained from T1 and T2 as shown in the following expression:1/T 1−1/T 2=2V cos θ/LV=(L/2 cos θ)·(1/T 1−1/T 2)

If there is a pressure variation in the flow path, the flow velocitychanges according to the pressure variation. Thus, T1 and T2 areexpressed as follows:T 1=L/(C+V cos θ+u·sin(2πft))T 2=L/(C−V cos θ−u·sin(2πft+ψ))where f denotes variation frequency, u denotes variation flow velocity,and ψ denotes a difference between a start time of T1 measurement and astart time of T2 measurement (phase difference). The difference betweenthe inverse numbers of T1 and T2 is expressed as follows:1/T 1−1/T2=(2V cos θ+u·(sin(2πft)+sin(2πft+ψ)))/L

When ψ=π, sin(2πft+ψ)=sin(2πft). That is, an influence of the variationis cancelled. Thus,V=(L/2 cos θ)·(1/T1−1/T 2)That is, the flow velocity V can be measured when there is a variation,and the flow rate can be measured in consideration of thecross-sectional area of the flow path. In the above example, themeasurement based on a single transmission/reception operation has beendescribed. However, in the case where the integrated time is obtained bya sing-around method where the propagation time is repeatedly measuredby the repetition means 234, T1 and T2 can be expressed similarly asshown in the following expressions: $\begin{matrix}{{T1} = {\sum\left\lbrack {L/\left( {C + {V\quad\cos\quad\theta} + {{u \cdot \sin}\quad\left( {2\pi\quad f\quad t\quad i} \right)}} \right)} \right\rbrack}} \\{= {\sum{L/\left( {{\sum\left( {C + {V\quad\cos\quad\theta}} \right)} + {\sum\left( {{u \cdot \sin}\quad\left( {2\pi\quad{fti}} \right)} \right)}} \right)}}} \\{{T2} = {\sum\left\lbrack {L/\left( {C - {V\quad\cos\quad\theta} - {u \cdot {\sin\left( {{2\pi\quad{fti}} + \psi} \right)}}} \right)} \right\rbrack}} \\{= {\sum{L/\left( {{\sum\left( {C + \quad{V\quad\cos\quad\theta}} \right)} + {\sum\left( {{u \cdot \sin}\quad\left( {{2\pi\quad{fti}} + \psi} \right)} \right)}} \right)}}}\end{matrix}$where i denotes the number of times of sing-around, and Σ denotes anintegration from i=1 to N. The sing-around method is a method wheretransmission/reception of an ultrasonic wave is repeated, whereby a longtotal propagation time is obtained, and accordingly, the measurementaccuracy is increased. Herein, the details of measurement processing ofthe sing-around method are omitted.

From the difference of the inverse numbers of T1 and T2, the followingexpression can be obtained: $\begin{matrix}{{{1/{T1}} - {1/{T2}}} = \left( {{\sum\left\lbrack {2\quad V\quad\cos\quad\theta} \right\rbrack} + {\sum\left\lbrack {{u \cdot \left( {\sin\left( {2\pi\quad{ft}} \right)} \right)} +} \right.}} \right.} \\{\left. \left. \left. {\sum\left\lbrack {u \cdot {\sin\left( {{2\pi\quad{ft}} + \psi} \right)}} \right.} \right) \right\rbrack \right)/{\sum L}}\end{matrix}$

When ψ=π, sin(2πft+ψ)=−sin(2πft). That is, an influence of the variationis cancelled when the sing-around method is used. Thus,V=(L/2 cos θ)·(1/T 1−1/T 2)

That is, the flow velocity V can be measured when there is a variation,and the flow rate can be measured in consideration of thecross-sectional area of the flow path.

The start timing when the time difference ψ is π is described withreference with FIG. 15. An output signal of the variation detectionmeans 229 is achieved by comparing and detecting a zero-crossing pointof an alternating component of the pressure variation by a comparator.That is, measurement of T1 is started at a rising edge of the outputsignal of the variation detection means, and integral time T1 ismeasured for a predetermined number of times of sing-around. On theother hand, measurement of T2 is started at a falling edge of the outputsignal of the variation detection means 29, and integral time T2 ismeasured for the same predetermined number of times of sing-around. Asshown in FIG. 15, T1 is measured within zones A, B, and C of thepressure waveform. T2 is measured within zones F, G, and H, which havean inverted amplitude of that within zones A, B, and C. Thus, thepressure variation is cancelled.

When the pressure variation exhibits a positive-negative (peak-to-peak)symmetry waveform as shown in FIG. 15, the variation can be cancelled bya single measurement operation for each of T1 and T2. However, when thepressure variation exhibits a positive-negative (peak-to-peak) asymmetrywaveform as shown in FIG. 16, the variation can be cancelled byappropriately changing the time from which the measurement is started.That is, the measurement of T1 is started at a rising edge of the outputsignal of the variation detection means 229, and integral time T1 ismeasured for a predetermined number of times of sing-around. On theother hand, measurement of T2 is started at a falling edge of the outputsignal of the variation detection means 229, and integral time T2 ismeasured for the same predetermined number of times of sing-around.Then, in the next measurement cycle, the measurement of T1 is started ata falling edge of the output signal of the variation detection means229, and integral time T1 is measured for a predetermined number oftimes of sing-around. On the other hand, measurement of T2 is started ata rising edge of the output signal of the variation detection means 229,and integral time T2 is measured for the same predetermined number oftimes of sing-around. Referring to FIG. 16, in the first measurementcycle, T1 is measured within zones A, B, and C, and T2 is measuredwithin zones D, E, and F. After the first measurement cycle, thedifference in the measured value between zones C and F, C−(−F), is leftas an error because the waveforms of zones C and F are different. In thesecond measurement cycle, T1 is measured within zones H, I, and J whichhave an opposite waveform, and T2 is measured within zones K, L, and M.After the second measurement cycle also, the difference in the measuredvalue between zones J and M is left as an error because the waveforms ofzones J and M are different. In the second measurement cycle, themeasurement is performed for an ultrasonic wave transmitted from theupstream side within zone M, whereas the measurement is performed for anultrasonic wave transmitted from the downstream side within zone 3.Thus, the signs of the measured values are inverted. As a result, thedifference in the measured value between zones J and M, (−J−M), is leftas an error. Hence, if considering that C=M and F=J, when C−(−F) and(−J−M) are added and averaged, a result of the operations is zero. Thatis, the pressure variation is cancelled. It is apparent that, when thedirection in which an ultrasonic wave is transmitted is alternatelychanged at each measurement, the measurement can be started with aconstant timing. In the above example, the measurement for twomeasurement cycles has been described. However, when the waveform of thepressure variation is asymmetrical and complicated, measurement isrepeated while successively changing the time when the measurement isstarted according to the periodicity of a waveform, whereby the measuredvalues are averaged, and accordingly, an error can be suppressed to aminimum value.

Next, a flow of the measurement is described with reference to theflowcharts of FIGS. 17 and 18. In the first step, whether or not thesignal of the variation detection means is at a rising edge isdetermined. When a rising edge is not detected, the determination isrepeated until the rising edge of the output signal of the variationdetection means 229 arrives. If a rising edge does not appear after apredetermined time period, detection of a rising edge is discontinued bydetection cancellation means, and it is determined that there is nopressure variation. Then, measurement of first measurement time T1 andsecond measurement time T2 are performed. When a rising edge isdetected, the first measurement time T1 is measured. Then, whether ornot the signal of the variation detection means 229 is at a falling edgeis determined. When a falling edge is detected, measurement of secondmeasurement time T2 is performed. If a falling edge does not appearafter a predetermined time period, detection of a falling edge isdiscontinued by detection cancellation means, and it is determined thatthere is no pressure variation. Then, measurement of second measurementtime P2 is performed. From the first measurement time T1 and secondmeasurement time T2, the flow rate Q(j) is calculated.

In the next measurement cycle, as shown in FIG. 18, the process isstarted with falling-edge detection. After the falling-edge detectionstep is performed, the first measurement time T1 is measured.Thereafter, after the rising-edge detection step is performed, thesecond measurement time T2 is measured. From the first measurement timeT1 and second measurement time T2, the flow rate Q(j+1) is calculated.The measurement is repeated while changing the time at which themeasurement is started, and the first flow rate Q(j) and second flowrate Q(j+1) are measured and successively averaged, whereby the flowrate Q is calculated. Thus, the measure values are averaged, whereby anerror can be removed in principle.

Since a pressure variation in the flow path can be measured with thesecond piezoelectric transducer 225, it is necessary to provide apressure sensor. Thus, the size of a flowmeter can be decreased, and thestructure of the flow path can be simplified. Further, the flow rate canbe instantaneously measured with a high accuracy in a reliable mannereven when a pressure variation occurs. The measurement is performed whena change in the pressure variation is inverted, whereby the phases ofthe pressure variation and the measurement timing can be shifted. Thus,a measurement error caused, due to the pressure variation can be offset.Furthermore, at each measurement, the timing at which the measurement isperformed is alternately changed between a positive point and a negativepoint, whereby an influence of the pressure variation can be offset evenwhen the pressure variation is asymmetrical between the high pressureside and the low pressure side. Furthermore, the measurement is repeatedaccording to the sing-around method, whereby the measured values can beaveraged within a single measurement cycle. Therefore, the flow ratemeasurement can be performed in a reliable manner. Furthermore, by theselection means, at least one of the first and second vibration meanscan be selected and used for pressure detection. Thus, both the flowrate measurement and the pressure measurement can be achieved. Avariation is detected at a point in the vicinity where a pressurevariation is zero, whereby the frequency of the variation can becorrectly grasped, and the flow rate can be offset. Even when there isno variation, the flow rate can be automatically measured at apredetermined time. The piezoelectric transducers are used together withthe variation detection means. Therefore, an ultrasonic wave is used fordetecting a pressure variation while being used fortransmission/reception. Moreover, it is not necessary to secure a placefor installing pressure detection means which is exclusively used forpressure detection, and the number of parts which can cause leakage offluid can be decreased.

It should be noted that, even when the detection of a pressure variationwhich has been described in this embodiment is performed with pressuredetection means which is exclusively used for pressure detection, thesame functional effects can be obtained. The example where the secondpiezoelectric transducers provided on the downstream side is used forpressure detection has been described. However, even when the firstpiezoelectric transducers provided on the upstream side is used forpressure detection, the same effects can be obtained. Further, even whenthe first piezoelectric transducers on the upstream side and the secondpiezoelectric transducers on the downstream side are alternately usedfor pressure detection as shown in FIG. 19, the same effects can beobtained. Moreover, by alternately using the piezoelectric transducers,the operation state of each piezoelectric transducer can be checked.That is, when the variation detection means detects the same signalfrequency from both piezoelectric transducers, it can be determined thatthe both piezoelectric transducers are operating normally.

In the above-described example, the flowmeter is a general-purposemeasuring device. However, when a flowmeter of the present invention isused in a gas meter, the flow meter can be provided in a pipeline inwhich fluctuation occurs, such as a pipeline system where a gas engineheat pump is used. Furthermore, this embodiment has been described inconjunction with a pressure variation. However, it is apparent that thesame effects can be obtained for a flow rate variation.

Embodiment 7

FIG. 20 is a timing chart showing an operation of a flowmeter accordingto embodiment 7 of the present invention. Embodiment 7 is different fromembodiment 6 in that the flowmeter of embodiment 7 includes repetitionmeans 234 for performing signal transmission/reception based on asing-around method a plurality of times over a period which is amultiple of one cycle of a variation frequency. The structure of theflowmeter of embodiment 7 is shown in FIG. 13.

In an example illustrated in FIG. 21, measurement is started with aninterval of a predetermined time period (e.g., 2 seconds). When apredetermined time arrives, the frequency of a variation is measured anddetected by the variation detection means 229. Then, the number of timesof a sing-around process is set so as to substantially conform with thevariation frequency. For example, the time spent for a singlepropagation can be calculated by dividing the distance between thepiezoelectric transducers, which transmit/receive an ultrasonic wave, bythe velocity of sound. A required number of times of the sing-aroundprocess can be calculated by dividing the measured frequency by thecalculated time spent for a single propagation. The measurement of theflow rate is repeated based on the number of times of the sing-aroundprocess. At step 7 in FIG. 21, the process 7 of FIG. 17 is performed.

In this way, the number of times of the sing-around process is changedso as to conform with a variation frequency, whereby one cycle of thevariation frequency can be measured. Accordingly, the pressure variationcan be averaged, and the flow rate can be measured in a reliable manner.The measurement is performed while the pressure synchronization and thenumber of times of the sing-around process conform with a multiple ofone cycle of the variation frequency, whereby the flow rate measurementcan be performed in a further reliable manner. Furthermore, since thepressure synchronization can be detected by utilizing a signal of thepiezoelectric transducers, a synergistic effect can be obtained, i.e.,the variation frequency can be detected, and the flow rate measurementcan be performed in a reliable manner.

In FIG. 20, the measurement for two cycles has been described. However,when the propagation distance is short, in order to increase theaccuracy of the measurement, it is necessary to perform a sing-aroundprocess for more than a predetermined number of times. Therefore, whenthe number of times of the sing-around process which is obtained fromthe variation frequency is smaller than the predetermined number oftimes, the number of times of the sing-around process is determined soas to be a multiple of the variation frequency.

Embodiment 8

FIG. 22 is a timing chart showing an operation of a flowmeter accordingto embodiment 8 of the present invention. Embodiment 8 is different fromembodiment 6 in that a flowmeter of embodiment 8 includes repetitionmeans 234 for performing measurement of a transmitted/received sonicwave such that, when an output of the variation detection means 229makes a predetermined change (e.g., when the output falls), measurementof a transmitted/received sonic wave is started, and sing-around processis repeated until the output of the variation detection means makes apredetermined change (e.g., when the output falls). The flow meter ofembodiment 8 has the structure shown in FIG. 13.

As shown in FIG. 23, a rising edge of a variation detection signal isdetected at the start of the measurement, and the sing-around process isstarted. Then, when the variation detection signal rises again, thesing-around process is stopped, and a first measurement time T1 ismeasured. Next, a falling edge of the variation detection signal isdetected at the start of the measurement, and the sing-around process isstarted. Then, when the variation detection signal falls again, thesing-around process is stopped, and a second measurement time T2 ismeasured. From the measurement times T1 and T2, the flow rate iscalculated.

In this way, the start and stop of the measurement can be conformed withthe frequency of the pressure variation, and therefore, the measurementcan be performed based on the variation frequency. Thus, the pressurevariation is averaged, and the flow rate can be measured in a reliablemanner.

Embodiment 9

FIG. 24 shows a structure of a flowmeter according to embodiment 9 ofthe present invention. Embodiment 9 is different from embodiment 6 inthat the flowmeter of embodiment 9 includes: two-bit count means 236 forcounting a variation of an output signal of the variation detectionmeans 229; and flow rate detection means 228 where measurement isperformed such that a count value of the count means 236 is differentbetween the first time measurement and the second time measurement, andthe flow rate measurement is performed only when all the combinations ofthe two bits are achieved for the same number of times. The timing chartof the measurement is shown in FIG. 25.

As shown in FIG. 25, when a variation is repeated by units of twocycles, for example, measurement of T1 is started at a time when anoutput of the count means is (1,0), and an output of the variationdetection means is at a rising edge. Measurement of T2 is started at asubsequent falling edge of the variation detection means. Suchmeasurement can be notionally expressed as Q(i)=(A−B+C)−(−B+C−D)=A+D. Inthe next measurement cycle, measurement of T1 is started at a time whenan output of the count means is (1,1) and at a falling edge of thevariation detection means. Measurement of T2 is started at a subsequentrising edge of the variation detection means. Such measurement can benotionally expressed as Q(i+1)=(−B+C−D)−(C−D+A)=−A−B. Subsequentmeasurement can be notionally expressed as: Q(i+2)=(C−D+A)−(−D+A−B)=C+B;and Q(i+3)=(−D+A−B)−(A−B+C)=−C−D. Thus, Q(i)+Q(i+1)+Q(i+2)+Q(i+3)=0.That is, a pressure variation is cancelled.

In the above example, the measurement for four measurement cycles hasbeen described. However, when the waveform of the pressure variation isasymmetrical and complicated, measurement is repeated while successivelychanging the time when the measurement is started according to theperiodicity of a waveform, whereby the measured values are averaged, andaccordingly, an error can be suppressed to a minimum value. Since themeasurement can be performed at all the variation timings, averaging ofthe measured values is achieved, and the flow rate can be measured in areliable manner.

Embodiment 10

FIG. 26 shows a structure of a flowmeter according to embodiment 10 ofthe present invention. Embodiment 10 is different from embodiment 6 inthat the flowmeter of embodiment 10 includes: frequency detection means237 for detecting the frequency of a signal of the variation detectionmeans 229; and measurement control means 230 for starting measurementonly when the frequency detected by the frequency detection means 237 isequal to a predetermined frequency.

As shown in FIG. 27, the measurement is started only when the signal ofthe variation detection means 229 is equal to a predetermined frequencyTm. With such an arrangement, the measurement can be performed at apredetermined variation frequency even when the frequency varies. Evenwith a pressure waveform shown in FIG. 25, the flow rate can be measuredonly for a specific pressure variation so long as the frequency isdetected. Thus, even when the frequency of the pressure variationvaries, the flow rate can be measured within a short space of time in areliable manner. The frequency is detected at a time interval (e.g., 2milliseconds), whereby flexibility is given to the measurement, so thatthe measurement can be continued without interruption.

Embodiment 11

FIG. 28 shows a structure of a flowmeter according to embodiment 11 ofthe present invention. Embodiment 11 is different from embodiment 6 inthat the transmission/reception means utilizes propagation of heat fordetecting a change in the state of fluid. Reference numeral 238 denotesa heater for emitting heat, reference numeral 239 denotes a firsttemperature sensor for receiving the heat, and reference numeral 240denotes a second temperature sensor for receiving the heat. The secondtemperature sensor 240 itself can generate heat and detect a change inthe state of fluid based on a change in its own resistance value.

Of course, the second temperature sensor is also used as heattransmission/reception means, whereby a change in the state of fluid,i.e., a variation of the flow velocity, or a variation of pressure, canbe detected. Furthermore, the measurement for one measurement cycle isperformed in synchronization with the detected variation. Therefore, theflow rate measurement can be performed with a high accuracy in areliable manner similarly as described in previous embodiments.

Embodiment 12

FIG. 29 is a block diagram showing a flowmeter according to embodiment12 of the present invention. In FIG. 29, reference numeral 323 denotes afirst piezoelectric transducer, which is first vibration means oftransmission/reception means that is provided in a flow path 324 andthat performs transmission/reception using an ultrasonic wave as a statechange of fluid. Reference numeral 325 denotes a second piezoelectrictransducer, which is second vibration means of transmission/receptionmeans that performs transmission/reception of an ultrasonic wave.Reference numeral 326 denotes a switch (switching means) for switching atransmission/reception operation of the first piezoelectric transducerand the second piezoelectric transducer. Reference numeral 327 denotestime measurement means for measuring a propagation time of a sonic waverepeatedly transmitted/received between the first piezoelectrictransducer 323 and the second piezoelectric transducer 325. Referencenumeral 328 denotes flow rate detection means for detecting the flowrate based on a value of the time measurement means. Reference numeral329 denotes pressure variation detector which functions as variationdetection means for detecting a pressure variation in the flow path 324.Reference numeral 330 denotes synchronization pulse output means whichfunctions as variation detection means for converting a pressure signalof the pressure variation detector 329 to a digital signal. Referencenumeral 331 denotes measurement control means for directing measurementso as to be in synchronization with a timing of the pressure variationdetected by the variation detected means. Reference numeral 332 denotesa transmitter for the transmission/reception means of an ultrasonicsignal. Reference numeral 333 denotes a receiver for thetransmission/reception means of an ultrasonic signal. Reference numeral334 denotes repetition means for repeating transmission/reception of anultrasonic wave. Reference numeral 335 denotes measurement monitoringmeans for monitoring abnormality of the measurement control means.

Next, an operation and function are described with reference to FIGS.14, 30, and 31. In a flow path having a structure shown in FIG. 14,propagation time T1 of an ultrasonic wave from the first piezoelectrictransducer 323 to the second piezoelectric transducer 325 is T1=L/(C+Vcos θ). Propagation time T2 of an ultrasonic wave from the secondpiezoelectric transducer 325 to the first piezoelectric transducer 323is T2 =L/(C−V cos θ). Herein, V denotes a flow velocity in the flowpath, C denotes acoustic velocity, and θ denotes an angle ofinclination. With the difference of inverse numbers of T1 and T2, theflow velocity V is obtained from T1 and T2, by changing the aboveexpressions, as shown in the following expression:V=(L/2 cos θ)·(1/T 1−1/T 2)

If there is a pressure variation in the flow path, the flow velocitychanges according to the pressure variation. Thus, T1 and T2 areexpressed as follows:T 1=L/(C+V cos θ+u·sin(2πft))T 2=L/(C−V cos θ−u·sin(2πft+ψ))where f denotes variation frequency of pressure, u denotes variationflow velocity, and ψ denotes difference between a start time of T1measurement and a start time of T2 measurement (phase difference). Thedifference between the inverse numbers of T1 and T2 is expressed asfollows: 1/T 1−1/T 2=(2V cos θ+u·(sin(2πft)+sin(2πft+ψ)))/LWhen ψ=π, sin(2πft+ψ)=−sin(2πft). That is, an influence of the variationis cancelled. Thus,V=(L/2 cos θ)·(1/T 1−1/T 2)That is, the flow velocity V can be measured when there is a variation,and the flow rate can be measured in consideration of thecross-sectional area of the flow path. Thus, when ψ=π, the measurementcontrol means, which measures the flow rate while detecting a pressurevariation, can measure the flow rate with a high accuracy in a reliablemanner without being influenced by a pressure variation. In the aboveexample, the measurement based on a single transmission/receptionoperation has been described. However, it is apparent that, also in thecase where the integrated time is obtained by a method where thepropagation time is repeatedly measured by the repetition means 234,flow rate can be similarly obtained.

As shown in FIG. 30, the measurement control means 331 outputs ameasurement start signal when a predetermined measurement time arrives(e.g., every two seconds), and waits for a change in an output signal ofthe synchronization pulse output means whose threshold value is azero-crossing point of a pressure variation. Then, when a falling signalof an output signal of the synchronization pulse output means 330 isoutput as the first output signal, measurement of first measurement timeT1 is started, and measurement of a propagation time is repeated until arising signal of the output signal of the synchronization pulse outputmeans 330 is output as the second output signal. In the next measurementcycle, measurement of second measurement time T2 is started when arising signal of the output signal of the synchronization pulse outputmeans 330 is output as the first output signal, and measurement of apropagation time is repeated until a falling signal of the output signalof the synchronization pulse output means 330 is output as the secondoutput signal. Then, the measurement times T1 and T2 obtained by thetime measurement means 327 is converted into the flow rate by the flowrate detection means 328, and the flow rate measurement is completed.

As shown in FIG. 31, the measurement control means 331 outputs ameasurement start signal when a predetermined measurement time arrives.However, when no change occurs in the output signal of thesynchronization pulse output means 330 after a predetermined timeperiod, the measurement control means 331 automatically outputs ameasurement start signal, and measurement is performed according to apredetermined number of repetition times (e.g., 256 times). For example,in the case where measurement is performed at an interval of 2 seconds,and a pressure variation occurs within a range from 10 Hz to 20 Hz, thepredetermined period as a waiting time can be set within a range from0.1 second to 2 seconds. However, in this case, it is preferable toselect 1 second as an optimum value. Furthermore, the predeterminednumber of repetition times can be set within a range from 2 times to 512times. However, in this case, it is preferable to select an optimumvalue according to the frequency of a pressure variation.

Thus, even when no variation occurs in pressure after a measurementstart signal is output, the measurement is started after a predeterminedperiod, whereby the flow rate measurement can be surely performed whenit is necessary to perform the flow rate measurement. For example, in aflowmeter of a gas meter, whether or not there is a gas flow is measuredwhen an earthquake occurs. Even when the flowmeter is waiting foroccurrence of a pressure variation when the earthquake occurs, and asynchronization pulse output signal cannot be obtained due toabnormality in a pressure variation, the flow rate measurement can beautomatically performed, and therefore, any abnormality can be dealtwith.

In the above example, a variation in a flow has been described as apressure variation in the flow path. However, it is apparent that thesame effects can be obtained by using flow velocity variation detectionmeans even when there is a variation in the flow velocity.

Embodiment 13

FIG. 32 is a timing chart showing an operation of a flowmeter accordingto embodiment 13 of the present invention. Embodiment 13 is differentfrom embodiment 12 in that the flowmeter of embodiment 13 includesmeasurement monitoring means 335 wherein, when a start signal is notissued within a predetermined period after a direction from themeasurement control means 331 is issued, measurement is not performeduntil a next direction from the measurement control means is issued. Thestructure of the flowmeter of embodiment 13 is shown in FIG. 29.

As shown in FIG. 32, the measurement control means 331 outputs ameasurement start signal when a predetermined measurement time arrives.However, when no change occurs in the output signal of thesynchronization pulse output means after waiting for such a change for apredetermined time period, the measurement monitoring means 335 directsthe measurement control means 331 to stop waiting for a change in thesynchronization pulse signal. The measurement control means 331 waitsfor a next measurement time (e.g., 2 seconds later). Herein, ifmeasurement is performed at an interval of 2 seconds, and a pressurevariation occurs within a range from 10 Hz to 20 Hz, the predeterminedperiod as a waiting time can be set within a range from 0.1 second to 2seconds. However, in this case, it is preferable to select 1 second asan optimum value.

As described above, when no change occurs in the pressure after ameasurement, start signal is issued, waiting for a change is stoppedafter a predetermined time period has elapsed, and flow rate measurementis not performed, whereby a low-accuracy measurement of flow rate can beavoided. In FIG. 32, a time when the first propagation time T1 ismeasured is shown. However, if a synchronization pulse does not occurwhen the second propagation time T2 is measured, an interval between thetime when T1 is measured and the time when T2 is measured becomesconsiderably long, and accordingly, the measurement accuracy decreases.Such measurement with a decreased accuracy can be avoided. Furthermore,since the measurement operation is suspended until a next measurementdirection is issued, unnecessary measurement is avoided, and consumedpower can be reduced. For example, in a gas meter where a microcomputerfor controlling a safety function is driven by an electric battery cell,the consumed power is reduced, and accordingly, a long lifetime can beobtained.

Embodiment 14

FIG. 33 is a timing chart showing an operation of a flowmeter accordingto embodiment 14 of the present invention. Embodiment 14 is differentfrom embodiment 12 in that the flowmeter of embodiment 14 includesmeasurement monitoring means 335 wherein, when an end signal is notissued within a predetermined period after a start signal is issued,reception of a sonic wave is ended, and a start signal is output again.The structure of the flowmeter of embodiment 14 is shown in FIG. 29.

As shown in FIG. 33, the measurement control means 331 outputs ameasurement start signal when a predetermined measurement time arrives,and detects a first output signal at a falling edge of an output signalof the synchronization pulse output means so as to start measurement.Then, when a second output signal (falling edge) of the output signal ofthe synchronization pulse output means does not emerge after apredetermined time period, waiting for the synchronization pulse signalis ended, and a start signal is output again for measurement. Herein, ifmeasurement is performed at an interval of 2 seconds, and a pressurevariation occurs within a range from 10 Hz to 20 Hz, the predeterminedperiod as a waiting time can be set within a range from 0.1 second to 2seconds. However, in this case, it is preferable to select 1 second asan optimum value. With I second, even if measurement is performed again(re-measurement), the measurement can be completed before a nextmeasurement time arrives after 2 seconds. If no second output signalemerges in the re-measurement process, the operation waits for a nextmeasurement time.

As described above, when no change occurs in the pressure after ameasurement is started, waiting for a change is ended after apredetermined time period, and flow rate measurement is not performed,whereby an incorrect measurement of flow rate can be avoided.Furthermore, due to re-measurement, lack of certain periodic measurementdata can be prevented, and measurement processing, such as averaging,can be smoothly performed, whereby the accuracy of a measured flow ratevalue can be improved. Furthermore, without a direction concerning theend of measurement, the time measurement means performs erroneousmeasurement, and the measurement accuracy decreases. Such measurementwith a decreased accuracy can be avoided. Furthermore, the measurementis forcibly ended, whereby the measurement process does not stop due toa wait for an end direction. Thus, the process can proceed to asubsequent step. Therefore, a measurement operation can be achieved in areliable manner.

Embodiment 15

FIG. 34 is a flowchart showing an operation of a flowmeter according toembodiment 15 of the present invention. Embodiment 15 is different fromembodiment 12 in that the flowmeter of embodiment 15 includesmeasurement monitoring means 335 wherein, when an end signal is notissued within a predetermined period T after a start signal is issued,reception of a sonic wave is ended, and measured data is abandoned. Thestructure of the flowmeter of embodiment 15 is shown in FIG. 29.

As shown in FIG. 34, after a first output signal is output, when asecond output signal which indicates the end of one cycle is not issuedafter the predetermined time T (e.g., 0.5 second) has elapsed,repetition of transmission/reception of a ultrasonic wave is ended, andpreviously measured data are abandoned. Then, after being suspended fora predetermined time period, measurement is resumed.

As described above, when the measurement is not successful, the measureddata is abandoned, whereby only data measured with a high accuracy canbe used, and a measurement operation can be performed in a reliablemanner. Further, it is not necessary to hold measured data, andaccordingly, the amount of power consumed for measurement can bedecreased. Furthermore, by monitoring whether or not the predeterminedtime T is longer than a periodical measurement cycle (e.g, 2 seconds),measurement can be performed such that measurement times do not overlapwith each other. Even when a propagation time of an ultrasonic wave isvaried due to a variation of temperature, the measurement operation canbe managed by controlling the same predetermined time T.

Embodiment 16

FIG. 35 is a flowchart showing an operation of a flowmeter according toembodiment 16 of the present invention. Embodiment 16 is different fromembodiment 12 in that the flowmeter of embodiment 16 includesmeasurement monitoring means 335 wherein, when the number of repetitiontimes is equal to or more than a predetermined number of times N1,reception of a sonic wave is ended, and measured data is abandoned. Thestructure of the flowmeter of embodiment 16 is shown in FIG. 29.

As shown in FIG. 35, after a first output signal is output, if a secondoutput signal which indicates the end of one cycle is not issued whentransmission/reception of an ultrasonic wave is repeated for thepredetermined number of times N1 (e.g., 512 times) or more, repetitionof transmission/reception of the ultrasonic wave is ended, andpreviously measured data are abandoned. Then, after being suspended fora predetermined time period, measurement is resumed.

As described above, when the measurement is not successful, the measureddata is abandoned, whereby only data measured with a high accuracy canbe used, and a measurement operation can be performed in a reliablemanner. Further, it is not necessary to hold measured data, andaccordingly, the amount of power consumed for measurement can bedecreased. Furthermore, even when a propagation time of an ultrasonicwave is varied due to a variation of temperature, the measurement can beperformed independently of the propagation time until the limit of thenumber of repetition times by controlling the number of repetitiontimes.

Embodiment 17

FIG. 36 is a flowchart showing an operation of a flowmeter according toembodiment 17 of the present invention. Embodiment 17 is different fromembodiment 12 in that the flowmeter of embodiment 17 includesmeasurement monitoring means 335 wherein, when the number of repetitiontimes is equal to or less than a predetermined number of times N2,measured data is abandoned, and a start signal is output again. Thestructure of the flowmeter of embodiment 17 is shown in FIG. 29.

As shown in FIG. 36, in predetermined measurement which is performedbased on a variation frequency, when the number of repetition times isequal to or less than a predetermined number of times N2 (e.g., 100times), previously measured data is abandoned. Then, after beingsuspended for a predetermined time period, the measurement is resumed.

Even when the measurement is correctly performed, if the number ofrepetition times is equal to or less than a predetermined number oftimes, it is probable that a pressure variation is not correctlygrasped. In such a case, obtained data is abandoned and measurement isperformed again, which is possible because the measurement is performedover more than one cycle. Therefore, a measurement operation can beperformed in a reliable manner. Further, it is not necessary to holdmeasured data, and accordingly, the amount of power consumed formeasurement can be decreased.

Embodiment 18

FIG. 37 is a flowchart showing an operation of a flowmeter according toembodiment 18 of the present invention. Embodiment 18 is different fromembodiment 12 in that the flowmeter of embodiment 18 includesmeasurement monitoring means 335 wherein, when the number of repetitiontimes is equal to or less than a predetermined number of times N2,measured data is abandoned, and a start signal is output again. Thesynchronization pulse output means 330 which functions as variationdetection means outputs a second output signal when a signal of thesynchronization pulse output means 330 reaches a second cycle andcontinues the measurement until an end signal, indicating the end of thesecond cycle, is issued. The structure of the flowmeter of embodiment 18is shown in FIG. 29.

As shown in FIG. 37, in predetermined measurement which is performedbased on a variation frequency, when the number of repetition times isequal to or less than a predetermined number of times N2 (e.g., 100times), previously measured data is abandoned. Then, after beingsuspended for a predetermined time period, a second output signal isoutput when a signal of the synchronization pulse output means 330reaches a second cycle, and the measurement is resumed and continueduntil an end signal of the second cycle is issued.

Even when the measurement is correctly performed, if the number ofrepetition times is equal to or less than a predetermined number oftimes, it is probable that a pressure variation is not correctlygrasped. In such a case, obtained data is abandoned and measurement isperformed again, which is possible because the measurement is performedover more than one cycle. Therefore, a measurement operation can beperformed in a reliable manner. Further, since re-measurement isperformed over two cycles, the measurement accuracy is improved due tosuch a long-time measurement.

Embodiment 19

FIG. 38 is a flowchart showing an operation of a flowmeter according toembodiment 19 of the present invention. Embodiment 19 is different fromembodiment 12 in that the flowmeter of embodiment 19 includesmeasurement monitoring means 335 wherein, when the difference betweenthe first number of repetition times N3 of measurement, where anultrasonic wave is transmitted from the first transmission/receptionmeans among a pair of transmission/reception means to the secondtransmission/reception means, and the second number of repetition timesN4 of measurement where an ultrasonic wave is transmitted from thesecond transmission/reception means to the first transmission/receptionmeans, is equal to or more than a predetermined number of times, a startsignal is output again. The structure of the flowmeter of embodiment 19is shown in FIG. 29.

As shown in FIG. 38, in predetermined measurement which is performedbased on a variation frequency, when the difference between the firstnumber of repetition times N3 and the second number of repetition timesN4 is equal to or more than a predetermined number of times M (e.g., 10times), previously measured data is abandoned. Then, after beingsuspended for a predetermined time period, the measurement is resumed.

Even when the measurement is correctly performed, if the differencebetween the first number of repetition times N3 and the second number ofrepetition times N4 is large, it is probable that a pressure variationis not correctly grasped, or that the frequency of a pressure variationis changed. If so, a result of the measurement is not correct. Thus, theobtained data is abandoned, and measurement is performed again, wherebya measurement operation can be performed in a reliable manner.

Embodiment 20

FIG. 39 is a flowchart showing an operation of a flowmeter according toembodiment 20 of the present invention. Embodiment 20 is different fromembodiment 12 in that the flowmeter of embodiment 20 includes repetitionmeans 334 for setting the number of repetition times such that the firstnumber of repetition times N3 of measurement, where an ultrasonic waveis transmitted from the first transmission/reception means among a pairof transmission/reception means to the second transmission/receptionmeans, is equal to the second number of repetition times N4 ofmeasurement, where an ultrasonic wave is transmitted from the secondtransmission/reception means to the first transmission/reception means.The structure of the flowmeter of embodiment 20 is shown in FIG. 29.

As shown in FIG. 39, in predetermined measurement which is performedbased on a variation frequency, measurement is performed for the secondnumber of repetition times which is equal to the first number ofrepetition times N3. That is, the second measurement is performed forthe first number of repetition times N3, whereby the measurement can beperformed without causing a large difference between a true value and ameasured value even when the frequency of a pressure variation variessharply.

Thus, even when the frequency of a pressure variation sharply varies,flow rate measurement can be performed. For example, in the case of agas meter, there is a time when it is necessary to perform flow ratemeasurement for securing safety. Even when the frequency of a pressurevariation sharply varies, measurement is performed as described above,whereby it can be quickly determined whether or not the measured valueis in the vicinity of a predetermined flow rate.

Embodiment 21

FIG. 40 is a flowchart showing an operation of a flowmeter according toembodiment 21 of the present invention. Embodiment 21 is different fromembodiment 12 in that the flowmeter of embodiment 21 includesmeasurement monitoring means 335 for monitoring a measurement operationsuch that the number of times that a start signal is output again islimited to a predetermined number of times C so as not to permanentlyrepeat outputting of the start signal. The structure of the flowmeter ofembodiment 21 is shown in FIG. 29.

As shown in FIG. 40, when measurement is performed again aftermeasurement based on a pressure variation has failed, the number oftimes C for the re-measurement is limited (e.g., up to 2 times), wherebyoutputting of the start signal is prevented from being repeatedpermanently. As a result, the flow rate measurement can be performed ina reliable manner.

Embodiment 22

FIG. 41 is a block diagram showing a flowmeter according to embodiment22 of the present invention. Embodiment 22 is different from embodiment12 in that, in embodiment 22, propagation of heat is utilized fordetecting a change in the state of fluid. Reference numeral 336 denotesa heater for emitting heat. Reference numeral 337 denotes a temperaturesensor for receiving the heat.

Even when a temperature sensor which is heat transmission/receptionmeans is used, flow rate measurement can be continuously performed witha high accuracy similarly to the above-described embodiments, becausethe measurement monitoring means detects each abnormality and performvarious processing according to the detected abnormality.

Embodiment 23

FIG. 42 is a block diagram showing a flowmeter according to embodiment23 of the present invention. In FIG. 42, reference numeral 415 denotesultrasonic wave flow rate detection means for detecting an instantaneousflow rate; reference numeral 416 denotes fluctuation determination meansfor determining whether or not the flow rate value varies in a pulsedmanner; reference numeral 417 denotes stable flow rate calculation meansfor calculating a flow rate value by using different means according tothe determination result of the fluctuation determination means; andreference numeral 418 denotes filter processing means for performingdigital filter processing on a flow rate value.

Next, an operation and function are described with reference to FIGS. 43through 45. As shown in FIG. 43, in the flowmeter of the presentinvention, when the difference between an instantaneous flow rate Q(i)measured by the ultrasonic wave flow rate detection means and apreviously-measured instantaneous flow rate Q(i−1) is equal to orgreater than a predetermined value (e.g., 1 liter/hour), the fluctuationdetermination means determines that there is a pulse. When there is apulse, the filter coefficient for filter processing is changed accordingto the magnitude of the pulse. When there is no pulse, the filterprocessing is not performed, and the instantaneous flow rate value istreated as a stable flow rate. Herein, the digital filter processing isperformed based on the flow shown in FIG. 3 and is expressed, forexample, as the following expression: D(i)=α(D(i−α)Q(i), where α denotesthe filter coefficient, Q(i) denotes i-th instantaneous flow rate, andD(i) denotes a stable flow rate to be obtained after the filterprocessing. Such a filter has a characteristic of a low-pass filterwhich is shown in FIG. 45. As the filter coefficient is closer to 1(generally, 0.999), the filter allows only a lower frequency componentto pass therethrough. Thus, the filter can remove a varying value so asnot to pass through the filter. When the variation amplitude is small,filter coefficient α2 (generally, α2=0.9) is selected, and an improvedresponse characteristic to a flow rate variation is obtained with such arelaxed filter characteristic, so that a flow rate variation can bequickly dealt with. Further, when the variation amplitude is large,filter coefficient al (generally, α2=0.9999) is selected, and avariation in a flow rate value is suppressed with such an extreme lowpass filter characteristic.

Furthermore, a pulse component A(i) can be obtained by expression,A(i)=Q(i)−D(i), and A(i) can be used as a variation amplitude.

Thus, the filter processing is performed when the amplitude of a pulseis equal to or greater than a predetermined value, whereby a variationcomponent can be removed. Accordingly, even when a pulse occurs, stableflow rate measurement can be performed with one ultrasonic wave flowrate measurement means. Further, a calculation equivalent to averagingprocessing can be performed by filter processing without using a largenumber of memories for storing data. Moreover, the filter characteristiccan be freely modified by changing one variable, i.e., a filtercoefficient α. Thus, the filter characteristic can be modified accordingto the magnitude of a pulse. Furthermore, when a pulse occurs, a sharpfilter characteristic is selected so as to render a large pulse stable,and the filter processing can be performed only when a pulse occurs.Furthermore, the determination is performed based on the variationamplitude of a pulse, whereby the filter processing can be modifiedbased on the variation amplitude of a pulse. Furthermore, since thefilter characteristic is modified based on the variation amplitude, arelaxed filter characteristic that allows a quick variation according toa variation in a flow rate is selected when the variation is small, andwhen the variation is large, a sharp filter characteristic is selectedsuch that a variation of the flow rate due to a pulse is significantlysuppressed.

In this embodiment, the digital filter processing method described is asshown in FIG. 44. However, the same effects can be obtained by usingother filter processing method.

In the above-described example, the flowmeter is a general-purposemeasuring device. However, when the flowmeter of this embodiment is usedin a gas meter, the flow meter can be provided to a flow-path pipe inwhich fluctuation occurs, such as a pipeline system where a gas engineheat pump is used.

Embodiment 24

FIG. 46 is a flowchart showing an operation of a flowmeter according toembodiment 24 of the present invention. Embodiment 24 is different fromembodiment 23 in that the flowmeter of embodiment 24 includes pulseamplitude detection means for detecting the variation amplitude of apulse based on two flow rate values which have been subjected to filterprocessing while changing the filter coefficient α.

As shown in FIG. 46, the difference between a first flow rate valuewhich has been subjected to filter processing with a filter coefficiental (e.g., α1=0.999) and a second flow rate value which has beensubjected to filter processing with a filter coefficient α2(e.g.,α2=0.9) is greater than a predetermined value (e.g., 1 liter/hour), thelarge filter coefficient α1 is decreased little by little, such that theflow rate value after stable flow rate calculation quickly becomesstable. Such processing is performed when 1>α1>α2>0.

When a stable flow rate which is subjected to filter processing with alarge filter coefficient is used, a response characteristic to a flowrate variation is decreased when a pulse causes a variation in the flowrate. However, by processing using two filters, even if the flow ratevaries sharply when fluctuation occurs, such a variation can be quicklyhandled by using a flow rate calculated with a smaller flow ratecoefficient.

Embodiment 25

FIG. 47 is a flowchart showing an operation of a flowmeter according toembodiment 25 of the present invention. Embodiment 25 is different fromembodiment 23 in that filter processing is performed only when a flowrate value detected by the instantaneous flow rate detection means islow.

As shown in FIG. 47, when an instantaneous flow rate measured by theultrasonic wave flow rate measurement means is smaller than apredetermined flow rate (e.g., 120 liter/hour), a stable flow rate canbe correctly measured by a filter process even when a pulse occurs.Furthermore, when the instantaneous flow rate measured by the ultrasonicwave flow rate measurement means is equal to or greater than thepredetermined flow rate, the ratio of a variation amplitude of flow ratemeasurement due to fluctuation is small. Thus, flow rate measurement canbe performed correctly without filter processing. Furthermore, since theflow rate is small, the filter processing is performed using a filtercoefficient a of a large value (e.g., α=0.999).

As described above, filter processing is performed only when the flowrate is low. Accordingly, a variation of flow rate can be quicklyhandled when the flow rate is high, and an influence of fluctuationwhich may be caused when the flow rate is low can be significantlysuppressed.

Embodiment 26

FIG. 48 is a flowchart showing an operation of a flowmeter according toembodiment 26 of the present invention. Embodiment 26 is different fromembodiment 23 in that the filter processing means modifies a filtercharacteristic according to the flow rate value.

As shown in FIG. 48, filter coefficient α1 (e.g., (α1=0.9) is selectedwhen an instantaneous flow rate measured by the ultrasonic wave flowrate measurement means is equal to or greater than a predetermined value(e.g., 120 liter/hour), and filter coefficient α2 (e.g., α2=0.999) isselected when the instantaneous flow rate is smaller than thepredetermined value. When the flow rate is low, filter coefficient α2 isincreased, such that a stable flow rate is mainly measured. For example,when the flowmeter is used in a gas meter, leakage detection, equipmentdetermination, and pilot-burner registration are correctly performed. Onthe other hand, when the flow rate is high, filter coefficient al isdecreased, such that the measurement can be quickly modified accordingto a flow rate variation, whereby a response characteristic of anintegrated flow rate is improved.

As described above, the filter characteristic is modified according tothe flow rate value. Filter processing is performed when the flow rateis low, and when the flow rate is high, a flow rate variation can bequickly handled. Besides, when the flow rate is low, an influence offluctuation can be considerably suppressed. As a result, when the flowrate is high, a response characteristic is increased. and when the flowrate is low, fluctuation can be suppressed.

Embodiment 27

FIG. 49 is a flowchart showing an operation of a flowmeter according toembodiment 27 of the present invention. Embodiment 27 is different fromembodiment 23 in that the filter processing means modifies a filtercharacteristic at an interval of a flow rate measurement time of theultrasonic wave flow rate measurement means.

As shown in FIG. 49, when the time period for which the flow rate ismeasured by the ultrasonic wave flow rate measurement means is long(e.g., 12 seconds), a small value is used as filter coefficient α1(e.g., α1=0.9) for filter processing. When the time period for which theflow rate is measured by the ultrasonic wave flow rate measurement meansis short, a large value is used as filter coefficient α2 (e.g.,α2=0.999) for filter processing.

The filter characteristic is modified according to the length of thetime period for flow rate detection. When the measurement period isshort, a relaxed filter characteristic is used, and when the measurementperiod is long, a sharp filter characteristic is used, whereby avariation in the filter characteristic can be suppressed.

Embodiment 28

FIG. 50 is a flowchart showing an operation of a flowmeter according toembodiment 28 of the present invention. Embodiment 28 is different fromembodiment 23 in that the filter characteristic is modified such that avariation amplitude of a flow rate value calculated by the stable flowrate calculation means is within a predetermined range.

As shown in FIG. 50, when a variation value of the flow rate which isobtained by stable flow rate calculation processing after the filterprocessing is equal to or greater than a predetermined value (e.g., 1liter/hour), the filter coefficient a is increased so as to control themeasurement such that the flow rate variation is suppressed. When thevariation value of the flow rate is smaller than the predeterminedvalue, the filter coefficient a is decreased, and the filter processingis performed under a state where a flow rate variation can be dealtwith.

The filter characteristic is appropriately modified such that avariation value obtained after the stable flow rate calculation means iswithin a predetermined range, whereby the flow rate variation can alwaysbe suppressed to be equal to or smaller than a predetermined value.

The increased amount of the filter coefficient is changed according tothe variation value of the flow rate. When the variation amplitude islarge, the increased amount of the filter coefficient is increased. Whenthe variation amplitude is small, the increased amount of the filtercoefficient is decreased. With such an arrangement, a variation in theflow rate can be smoothly suppressed.

Embodiment 29

FIG. 51 is a block diagram showing a flowmeter according to embodiment29 of the present invention. Embodiment 29 is different from embodiment23 in that, in embodiment 29, heat-based flow rate detection means 419is used in place of the instantaneous flow rate detection means.

As shown in FIG. 51, even when the heat-based flow rate detection means419 is used, a measured flow rate varies due to a pressure variation ifit is present. However, the same effects can be obtained by using themethods described in embodiments 23-28, and the flow rate can bemeasured with a high accuracy in a reliable manner.

Embodiment 30

FIG. 52 is a block diagram showing a flowmeter according to embodiment30 of the present invention.

The flowmeter of embodiment 30 includes: a flow rate measurement section500 through which a fluid to be measured flows; a pair of ultrasonicwave transducers 501 and 502 which are provided in the flow ratemeasurement section 500 and which transmit/receive an ultrasonic wave; adriver circuit 503 for driving the ultrasonic wave transducer 502; areception detecting circuit 504 which is connected to the ultrasonicwave transducer 501 and which detects an ultrasonic wave signal; a timer505 for measuring a propagation time of an ultrasonic wave signal; acontrol section 507 for controlling the driver circuit 503; acalculation section 506 for calculating the flow rate from an output ofthe timer; and periodicity change means 508 for sequentially changing adriving method of the driver circuit 503. Embodiment 30 is differentfrom the conventional examples in that the flowmeter of embodiment 30includes the periodicity change means 508. The details of theperiodicity change means 508 are shown in FIG. 53. Reference numeral 510denotes a first oscillator, which herein generates an oscillation signalof 500 kHz. Reference numeral 511 denotes a second oscillator whichgenerates an oscillation signal of 520 kHz. Reference numeral 512denotes a switching device which selects either an output of the firstoscillator 510 or an output of the second oscillator 511 based on anoutput of the control section 507 so as to output the selected output tothe driver circuit 503.

First, the control section 507 outputs a switching signal to theswitching device 512 to select the first oscillator 510. Then, the timer505 starts time measurement, and at the same time, the control section507 outputs a transmission start signal to the driver circuit 503.Receiving the transmission start signal, the driver circuit 503 drivesthe ultrasonic wave transducer 502 with the oscillation signal of 500kHz which is an input from the switching device 512. The operationsperformed thereafter are the same as those of the conventional examples.Next, the control section 507 outputs a switching signal to theswitching device 512 to select the second oscillator 511. Then,similarly to the previous flow rate measurement, time measurement of thetimer 505 is started, and at the same time, the control section 507outputs a transmission start signal to the driver circuit 503. Receivingthe transmission start signal, the driver circuit 503 drives theultrasonic wave transducer 501 with the oscillation signal of 520 kHzwhich is an input from the switching device 512.

Thereafter, the above operations are alternately continued so as tomeasure the flow rate. A reception detecting timing in such measurementis shown in FIG. 54. As shown in this drawing, times when the 500 kHzsignal and the 520 kHz signal are received are temporally shifted.Reception detecting timings for the signals temporally shift as shown incurves (A) and (B) of FIG. 54. Thus, in this embodiment, the controlsection controls the periodicity change means such that the measurementfrequency in the flow rate measurement is successively changed so as notto be kept constant. As a result, noise which is in synchronization witha measurement frequency or a transmission frequency of an ultrasonicwave is never in the same phase but dispersed when the ultrasonic waveis received. Therefore, a measurement error can be decreased.

The periodicity change means is structured so as to switchingly output aplurality of output signals having different frequencies, and thecontrol section operates such that the setting of frequency in theperiodicity change means is changed for each measurement, and thedriving frequency of the driver circuit is changed. Therefore, bychanging the driving frequency, the reception detecting timing can bechanged by a time corresponding to a periodic variation of a drivingsignal. Thus, noise which is in synchronization with a measurementfrequency or a transmission frequency of an ultrasonic wave is never inthe same phase but dispersed when the ultrasonic wave is received.Therefore, a measurement error can be decreased.

In embodiment 30, the driving frequency is changed by switching twooscillators. However, the same effects can be obtained so long as anultrasonic wave transducer is driven while changing the drivingfrequency. The present invention can be achieved regardless of thenumber of oscillators, the driving frequency, and the structure of theswitching device.

Embodiment 31

FIG. 55 is a block diagram showing a flowmeter according to embodiment31 of the present invention.

The flowmeter of embodiment 30 includes: a flow rate measurement section500 through which a fluid to be measured flows; a pair of ultrasonicwave transducers 501 and 502 which are provided in the flow ratemeasurement section 500 and which transmit/receive an ultrasonic wave; adriver circuit 503 for driving one of the ultrasonic wave transducers; areception detecting circuit 504 which is connected to the otherultrasonic wave transducer and which detects an ultrasonic wave; acontrol section 507 for controlling the driver circuit 503 for apredetermined number of times such that the driver circuit 503 againdrives the ultrasonic wave transducers in response to an output of thereception detecting circuit 504; a timer 505 for measuring an elapsedtime for a predetermined number of times; a calculation section 506 forcalculating the flow rate from an output of the timer 505; andperiodicity change means 508 for sequentially changing a driving methodof the driver circuit 503.

FIG. 56 is a block diagram showing the details of the periodicity changemeans.

Reference numeral 513 denotes a first delay, which generates an outputsignal 150 μs after receiving an input signal from the control section507. Reference numeral 514 denotes a second delay, which generates anoutput signal 150.5 μs after receiving an input signal from the controlsection 507. Reference numeral 515 denotes a third delay, whichgenerates an output signal 151 us after receiving an input signal fromthe control section 507. Reference numeral 516 denotes a fourth delay,which generates an output signal 151.5 μs after receiving an inputsignal from the control section 507. Reference numeral 517 denotes aswitching device which selects one of first to fourth delay outputsaccording to an output of the control section 507 and outputs theselected output to the driver circuit 503.

Embodiment 31 is different from embodiment 1 in that the control section507 receives an output of the reception detecting circuit 504 and drivesthe ultrasonic wave transducers again, and that this operation isrepeated for a number of times which is a multiple of 4 (4 is the delayset number), and during the repetition, the delay times of theperiodicity change means 508 are sequentially switched every time anultrasonic wave is received.

In this structure, the control section 507 changes the setting of thedelay every time reception of an ultrasonic wave is detected. Thus, inone measurement operation, reverberation of an ultrasonic wavetransmitted in an immediately-previous measurement and an influence oftailing of the ultrasonic wave transducers can be dispersed/averaged,whereby a measurement error can be decreased.

The cycle width which is changed by the periodicity change means has avalue which is an equational division of the ultrasonic transducer (500kHz). Thus, in an averaged value of the sum of values for all thesettings, an error which may be caused due to reverberation of anultrasonic wave and tailing of an ultrasonic wave sensor (i.e., noisehaving a cycle of 2 μs) can be minimized.

Furthermore, the number of times that measurement is repeated is amultiple of 4 (4 is a change number of the periodicity change means).Thus, within a single flow rate measurement cycle, measurement with eachof the predetermined values of the periodicity change means is performedthe same number of times. As a result, a variation of the measurementresult is suppressed, and accordingly, a reliable measurement result canbe obtained.

Furthermore, the order of patterns for changing the periodicity is thesame for both measurement with an ultrasonic wave transmitted toward theupstream side and measurement with an ultrasonic wave transmitted towardthe downstream side. Specifically, in the measurement with an ultrasonicwave transmitted from upstream to downstream, the first delay, seconddelay, third delay, and fourth delay are selected in this order, andthen, the first delay is selected again; this cycle is repeated. Themeasurement with an ultrasonic wave transmitted from downstream toupstream is performed such that the delays are necessarily selected inthe same order. With such an arrangement, the flow rate measurement withan ultrasonic wave transmitted toward the upstream side and the flowrate measurement with an ultrasonic wave transmitted toward thedownstream side are always performed under the same conditions.Especially, even when there is a variation in the flow rate, a reliablemeasurement result can be obtained.

In embodiment 31, the delay time is changed by switching the fourdelays. The same effects can also be obtained so long as the ultrasonicwave transducers can be driven by changing the driving timing. Thepresent invention can be achieved regardless of the delay time, thenumber of delays, and the structure of the switching device.

In the above example, the delay times are inserted between the controlsection 507 and the driver circuit 503. However, the same effects canalso be obtained when the delay times are inserted between the receptiondetecting circuit 504 and the control section 507.

In the above example, the width by which the delay is changed is 2 μsthe set number to be changed is 4, and the difference between theadjacent settings is 0.5 μs, which is a quarter of 2 μs. The presentinvention is not limited to these values. Each of these values may be avalue obtained by uniformly dividing a multiple of one cycle.

Embodiment 32

FIG. 57A is a block diagram showing the periodicity change means of theflowmeter according to embodiment 32 of the present invention.

Reference numeral 518 denotes an oscillator, and 519 denotes a phaseconverter. The oscillator outputs a signal at a frequency of 500 kHz.The phase converter hastens or delays the phase of a signal of theoscillator according to a phase conversion signal from the controlsection 507, and outputs the signal with hastened or delayed phase. Forexample, when a phase control signal is Hi (high), the phase converteroutputs an output of the oscillator 518 as it is. When a phase controlsignal is Lo (low), the phase converter hastens the output signal of theoscillator 518 by 180° and outputs the hastened signal. The receptionsignals and reception detecting timings in these operations are shown inFIG. 57B.

As shown in this drawing, reception points are shifted by a ½ cycle.That is, the shift time is 1 μs.

In this way, the reception detecting timing can be changed by a timeperiod which is obtained by converting a phase variation of a drivingsignal into time by driving phase conversion. Thus, noise which is insynchronization with a measurement frequency or a transmission frequencyof an ultrasonic wave is never in the same phase but dispersed when theultrasonic wave is received. Therefore, a measurement error can bedecreased.

In embodiment 32, the phase of a driving signal is changed by switchingbetween two phases. However, the same effects can be obtained so long asthe ultrasonic wave transducers can be driven by changing the drivingphase. The present invention can be achieved regardless of the phase tobe changed and the structure of the switching device.

Embodiment 33

FIG. 58 is a block diagram showing the periodicity change means of theflowmeter according to embodiment 33.

Reference numeral 520 denotes a first oscillator which outputs anoscillation signal of 500 kHz, which is a resonance frequency of anultrasonic wave transducer. Reference numeral 521 denotes a secondoscillator which outputs an oscillation signal of 200 kHz. Referencenumeral 522 denotes an ON/OFF circuit which determines whether or not anoutput of the second oscillator is output to a waveform adding section523 according to an ON/OFF switching signal from the control section507. The waveform adding section 523 synthesizes input waveforms tooutput the synthesized waveform to the driver circuit 503.

When the ultrasonic wave transducer is driven at a frequency of about500 kHz, an ultrasonic wave signal having a large amplitude can bereceived. When the ultrasonic wave transducer is driven with only asignal component of 200 kHz, an ultrasonic wave signal can rarely bereceived. However, an oscillation signal of about 200 kHz is sometimesadded or sometimes not added to an oscillation frequency of about 500kHz. Such an irregular operation can cause a slight change in thefrequency of an ultrasonic wave signal to be received. As a result, thereception detecting timing can be changed. Thus, noise which is insynchronization with a measurement frequency or a transmission frequencyof an ultrasonic wave is never in the same phase but dispersed when theultrasonic wave is received. Therefore, a measurement error can bedecreased.

Embodiment 34

FIG. 59 is a block diagram showing the periodicity change means of theflowmeter according to embodiment 34.

Reference numeral 520 denotes a first oscillator which outputs anoscillation signal of 500 kHz, which is a resonance frequency of anultrasonic wave transducer. Reference numeral 521 denotes a secondoscillator which outputs an oscillation signal of 200 kHz. Referencenumeral 524 denotes a phase conversion section which converts the phaseof an output signal of the second oscillator 521 by 180° according to anoutput of the control section 507, and outputs the signal with theconverted phase. Reference numeral 523 denotes a waveform adding sectionfor synthesizing input waveforms and outputting the synthesized waveformto the driver circuit 503.

When the ultrasonic wave transducer is driven at a frequency of about500 kHz, an ultrasonic wave signal having a large amplitude can bereceived. When the ultrasonic wave transducer is driven with only asignal component of 200 kHz, an ultrasonic wave signal can rarely bereceived. However, the frequency of an ultrasonic wave signal, which isreceived by the ultrasonic wave transducer driven based on an additionsignal that is obtained by adding the phase of an oscillation signal ofabout 200 kHz which is changed by 180° in each measurement to anoscillation frequency of about 500 kHz, slightly changes. As a result,the reception detecting timing can be changed. Thus, noise which is insynchronization with a measurement frequency or a transmission frequencyof an ultrasonic wave is never in the same phase but dispersed when theultrasonic wave is received. Therefore, a measurement error can bedecreased.

Embodiment 35

FIG. 60 is a block diagram showing the periodicity change means of theflowmeter according to embodiment 35.

Reference numeral 525 denotes a first oscillator which outputs anoscillation signal of 500 kHz, which is a resonance frequency of anultrasonic wave transducer. Reference numeral 526 denotes a secondoscillator which outputs an oscillation signal of 200 kHz. Referencenumeral 527 denotes a frequency conversion section which converts thefrequency of a signal input into the frequency converter, and outputsthe signal with the converted frequency. Herein, the frequencyconversion section 527 converts the frequency of the input signal to a½, i.e., 100 kHz. Reference numeral 523 denotes a waveform addingsection for synthesizing input waveforms and outputting the synthesizedwaveform to the driver circuit 503.

When the ultrasonic wave transducer is driven at a frequency of about500 kHz, an ultrasonic wave signal having a large amplitude can bereceived. When the ultrasonic wave transducer is driven with only asignal component of 200 kHz or 100 kHz, an ultrasonic wave signal canrarely be received. However, the frequency of a received ultrasonic wavesignal, which is received by the ultrasonic wave transducer driven basedon an addition signal that is obtained by adding about 200 kHz to anoscillation frequency of about 500 kHz and an addition signal that isobtained by adding 100 kHz to an oscillation frequency of 500 kHz,slightly changes. As a result, the reception detecting timing can bechanged. Thus, noise which is in synchronization with a measurementfrequency or a transmission frequency of an ultrasonic wave is never inthe same phase but dispersed when the ultrasonic wave is received.Therefore, a measurement error can be decreased.

Embodiment 36

FIG. 61 is a block diagram showing a flowmeter according to embodiment36 of the present invention.

The flowmeter of embodiment 36 includes: a flow rate measurement section500 through which a fluid to be measured flows; a pair of ultrasonicwave transducers 501 and 502 which are provided in the flow ratemeasurement section 500 and which transmit/receive an ultrasonic wave; adriver circuit 503 for driving the ultrasonic wave transducer 502; areception detecting circuit 504 which is connected to the ultrasonicwave transducer 501 and which detects an ultrasonic wave signal; a firsttimer 527 for measuring a propagation time of an ultrasonic wave signal;a second timer 528 for measuring a time period from when the receptiondetecting circuit 504 receives a signal to when a value of the firsttimer 527 is changed; a control section 530 for controlling the drivercircuit 503; a calculation section 506 for calculating the flow ratefrom outputs of the first timer 527 and the second timer 528; aswitching circuit 509 for switching connections between the ultrasonicwave transducers 501 and 502 and the driver circuit 503 and thereception detecting circuit 504; a temperature sensor 531 for measuringthe temperature of the flowmeter and outputting the measured temperatureto the control section 530; and a voltage sensor 532 for measuring thevoltage of a power supply which powers the flowmeter.

The control section 530 outputs a measurement start signal to thedriving circuit 503 and, simultaneously, starts the time measurement ofthe first timer 527. The driving circuit 503 drives the ultrasonic wavetransducer 502 in response to a signal input so as to emit an ultrasonicwave. The emitted ultrasonic wave propagates in fluid and is received bythe ultrasonic wave transducer 501. The reception detecting circuit 504outputs the received ultrasonic wave signal to the first timer 527 andthe second timer 528. The first timer 527 receives an input signal fromthe reception detecting circuit 504 to stop the time measurement. Thesecond timer 528 receives an output of the reception detecting circuit504 to start time measurement, and then stops the time measurement insynchronization with a count-up timing output from the first timer 527.The calculation section 506 receives time measurement results of thefirst timer 527 and the second timer 528 and calculates the flow rate.

FIG. 62 shows operation timings of the first timer 527 and the secondtimer 528. As shown in FIG. 62, since the first timer 527 changes itsstate at a rising edge of a clock, an extra measurement corresponding toportion A is performed. Since the measurement resolution of the firsttimer 527 is an interval B in FIG. 62, portion A which is counted as ameasurement error is generated in each measurement. The extra portion Ais measured by the second timer 528 and subtracted in the calculationsection 506, whereby a propagation time of an ultrasonic wave with highresolution is obtained, and a correct flow rate value is obtained.

Furthermore, the control section 530 starts the first timer 527 and,simultaneously, outputs a start signal to the second timer 528 so as tostart the second timer 528. At a time when the first timer 527 countsup, an output signal, which is in synchronization with the count-uptiming, is output from the first timer 527 to the second timer 528 so asto stop the second timer 528. At this time, the value of the secondtimer 528 is equal to a time measured within one clock time of the firsttimer 527. This time is processed in the calculation section 506, a timecorresponding to one clock of the second timer 528 is obtained, and thetime corresponding to the one clock of the second timer 528, which isused in calculation, is corrected.

This operation is performed when an output of the temperature sensor 531or the power supply voltage sensor 532 varies so as to reach or exceed aset value. With such an arrangement, the second timer 528 does not needto possess stability to the temperature and power supply voltage. As aresult, inexpensive parts can be used. Furthermore, it is not necessaryto busily make corrections, and the amount of consumed power can besuppressed to a low level.

Since the flow rate calculation is performed using a value obtained bysubtracting a value of the second timer 528 from a value of the firsttimer 527, the time measurement resolution is equal to that of thesecond timer 528. Further, since the operation time of the second timer528 is very short, the amount of consumed power can be decreased. Thus,a flowmeter with high resolution which consumes a small amount of powercan be realized. Furthermore, a correct flow rate measurement can beachieved so long as the second timer 528 operates in a stable mannerafter the correction is made until flow rate measurement is performed.Therefore, a correct measurement can be performed even when the secondtimer 528 lacks long-term stability. Thus, a flowmeter with a highaccuracy can be realized with ordinarily-employed parts.

Furthermore, the temperature sensor 531 is provided. When an output ofthe temperature sensor 531 varies so as to reach or exceed a set value,the second timer 528 is corrected by the first timer 527. Thus, evenwhen the second timer 528 has a characteristic which varies according toa variation in the temperature, the second timer 528 is corrected everytime a temperature variation occurs, whereby correct measurement can beperformed. Furthermore, such a correction is made only when it isnecessary, the amount of consumed power can be decreased.

Furthermore, the voltage sensor 532 is provided. When an output of thevoltage sensor 532 varies so as to reach or exceed a set value, thesecond timer 528 is corrected by the first timer 527. Thus, even whenthe second timer 528 has a characteristic which varies according to avariation in the power supply voltage, the second timer 528 is correctedevery time a variation occurs in power supply voltage, whereby correctmeasurement can be performed. Furthermore, such a correction is madeonly when it is necessary, the amount of consumed power can bedecreased.

Furthermore, since such a correction is made, a crystal oscillator isused in a clock of the first timer 527, and a CR oscillation circuit isused in a clock of the second timer 528. A clock using a crystaloscillator operates in a very stable manner. However, in such a clock, along time is consumed from when an operation is started to when theoperation becomes stable. Further, although a long-term stability cannotbe secured with a CR oscillation circuit, a timer whose operationquickly becomes stable and which quickly operates in a non-synchronousmode can be readily realized with the CR oscillation circuit. A crystaloscillator is used in a clock of the first timer 527, and a CRoscillation circuit is used in a clock of the second timer 528, wherebya stable timer with high resolution can be readily realized.

In FIG. 62 of embodiment 36, the second timer stops at a time when aclock of the first timer falls after the second timer starts to operate.However, the present invention is not limited to this timing because acorrect time can be obtained by a calculation to be performed later solong as the timing is in synchronization with the first timer.

Embodiment 37

FIG. 63 is a block diagram showing a flowmeter according to embodiment37 of the present invention.

The flowmeter of embodiment 37 includes: a flow rate measurement section500; a pair of ultrasonic wave transducers 501 and 502 which areprovided in the flow rate measurement section 500 and whichtransmit/receive an ultrasonic wave; a driver circuit 503 for drivingthe ultrasonic wave transducer 502; a reception detecting circuit 504which is connected to the ultrasonic wave transducer 501 and whichdetects a received ultrasonic wave signal; a control section 507 forcontrolling the driver circuit 503 a predetermined number of times suchthat the driver circuit 503 again drives the ultrasonic wave transducer502 in response to an output of the reception detecting circuit 504; atimer 505 for measuring an elapsed time, a predetermined number oftimes; a calculation section 506 for calculating the flow rate from anoutput of the timer 505; and a delay section 533 which is frequencystabilizing means for sequentially changing a driving method of thedriver circuit 503.

The control section 507 outputs a measurement start signal to the delaysection 533 and, simultaneously, starts time measurement of the timer505. The delay section 533 outputs a signal to the driver circuit 503after a delay time which is set based on a setting signal from thecontrol section. In response to the signal input, the driver circuit 503drives the ultrasonic wave transducer 502 to emit an ultrasonic wave.The emitted ultrasonic wave propagates in fluid and is received by theultrasonic wave transducer 501. The reception detecting circuit 504outputs the received ultrasonic wave signal to the delay section 533,such that the driver circuit operates in a similar manner to that in aprevious cycle and transmit an ultrasonic wave signal again. The controlsection 507, which has received an output signal from the receptiondetecting circuit 504, counts such repetitious operation, and when thecount reaches a predetermined number of times, the control section 507stops the timer 505. The calculation section 506 receives a timemeasurement result of the timer 505 and calculates the flow rate.

The control section 507 receives a value of the timer 505 and sets thedelay time of the delay section 533 so as to always be constant. In thisway, the control section 507 controls the measurement such that themeasurement frequency is always constant. With such a structure, themeasurement frequency is always constant even when a variation occurs inthe propagation time. As a result, noise which is in synchronizationwith a measurement frequency or a transmission frequency of anultrasonic wave is always in the same phase when the ultrasonic wave isreceived regardless of a variation in the propagation time. Therefore, ameasurement error can be maintained as a constant value. Accordingly,the flow rate measurement can be stabilized even when the noise has avery long periodic noise.

The control section 507 controls the delay section 533 so as to maintainthe measurement time to be constant. Therefore, the measurementfrequency can be maintained to be constant with a simple calculationwithout calculating a propagation time for each ultrasonic wavetransmission.

In embodiment 37, the measurement frequency is maintained to be constantby changing the delay time. However, the same effects can be obtained solong as the measurement frequency is constant. Specifically, the sameeffects can be obtained by using a different method, e.g., by changingthe distance between the ultrasonic wave transducers.

Since a propagation time of an ultrasonic wave from upstream todownstream is different from a propagation time of an ultrasonic wavefrom downstream to upstream when there is a flow, a different delay canbe set for stabilizing the measurement frequency.

Furthermore, when a flow rate is large, and an error caused by periodicnoise is negligible, an operation of the periodicity stabilizing meansis stopped, whereby the amount of consumed electric power can bereduced.

Furthermore, at an initial stage of measurement, the flow rate ismeasured while changing the setting of the measurement frequencystabilizing means, whereby a measurement frequency with which a smallestvariation is caused in a measurement result by a measurement frequencyvariation is set as a target measurement frequency. With such anarrangement, a further stable measurement result can be obtained.

INDUSTRIAL APPLICABILITY

As described above, according to a flowmeter of the present invention,the following effect can be obtained.

In order to solve the above problems, a flowmeter of the presentinvention includes: transmission/reception means provided in a flow pathfor performing transmission/reception using a state change of fluid;repetition means for repeating the transmission/reception; timemeasurement means for measuring a time or propagation repeated by therepetition means; flow rate detection means for detecting a flow ratebased on a value of the time measurement means; and number-of-timeschange means for changing to a predetermined number of repetition times.The number of repetition times is changed to an optimum number such thatan influence of a variation of a flow can be suppressed. As a result,reliable flow rate measurement with a high accuracy can be achieved.

The flowmeter includes a pair of transmission/reception means whichutilize propagation of an ultrasonic wave as the state change of fluid.Thus, by using the sonic wave transmission/reception means, propagationof a sonic wave can be performed even when a state change occurs in thefluid. Moreover, by changing the number of repetition times to anoptimum number for the variation, reliable flow rate measurement with ahigh accuracy can be achieved.

The flowmeter includes transmission/reception means which utilizespropagation of heat as the state change of fluid. Thus, by using theheat transmission/reception means, propagation of heat can be performedeven when a state change occurs in the fluid. Moreover, by changing thenumber of repetition times to an optimum number for the variation,reliable flow rate measurement with a high accuracy can be achieved.

The flowmeter includes: elapsed time detection means for detectinghalfway information for a propagation time which is repeatedly measuredby the repetition means; frequency detection means for detecting afrequency of a flow rate variation from information of the elapsed timedetection means; and number-of-times change means for setting ameasurement time so as to be substantially a multiple of the frequencydetected by the frequency detection means. Thus, it is not necessary toprovide specific detection means. Before flow rate detection isperformed, the frequency of a variation is detected froth halfwayinformation of the time measurement means, and the measurement time canbe set so as to be a multiple of a cycle of the frequency. As a result,reliable flow rate measurement with a high accuracy can be achieved.

The flowmeter includes: data holding means for holding at least one ormore propagation time of repeatedly-performed transmission/receptionwhich is obtained by the elapsed time detection means; and frequencydetection means for detecting a frequency by comparing the data held bythe data holding means and measured propagation time data. Timemeasurement information at each moment is held and compared by the dataholding means, whereby the frequency can be detected.

The number-of-times change means is operated in predeterminedprocessing. Since the number-of-times change means is operated only whenpredetermined processing is performed, the processing in thenumber-of-times change means can be limited to the required minimum.Thus, the amount of consumed power can be considerably reduced.

The number-of-times change means is operated at each predetermined flowrate measurement. Thus, the number of repetition times is changed atevery predetermined flow rate measurement, whereby the flow rate can bemeasured with a high accuracy in a stable manner even in a flow thatvaries greatly.

The number-of-times change means is performed before flow ratemeasurement processing. Since the number of repetition times is set to apredetermined number of times before flow rate measurement is performed,the flow rate measurement can be performed with a high accuracy in areliable manner.

Predetermined processing includes operations of abnormalitydetermination means for determining abnormality in flow rate from themeasured flow rate; and flow rate management means for managing a usestate for a flow rate from a measured flow rate. Since the number ofrepetition times is changed only when the abnormality determinationprocessing and the flow rate management processing are performed, theprocessing of changing the number of repetition times is limited to therequired minimum. Thus, the amount of consumed power can be decreased.

The number of repetition times which is adjusted the frequency obtainedby the frequency detection means is used in next flow rate measurement.Since the number of repetition times is used in the next measurement, itis not necessary to perform repetitious measurement for frequencydetection. Thus, the amount of consumed power can be decreased.

The number-of-times change means is operated when the measured flow rateis lower than a predetermined flow rate. Since the number of repetitiontimes is changed only when the flow rate is equal to or lower than apredetermined flow rate, but this processing is not performed when theflow rate is high, the amount of consumed power can be decreased.

A flowmeter of the present invention includes: transmission/receptionmeans provided in a flow path for performing transmission/receptionusing a state change of fluid; time measurement means for measuring apropagation time transmitted/received by the transmission/receptionmeans; flow rate detection means for detecting a flow rate based on avalue of the time measurement means; variation detection means formeasuring a variation in the flow path by the transmission/receptionmeans; and measurement control means for starting measurement insynchronization with a timing of a variation of the variation detectionmeans. Since a variation in the flow path is measured bytransmission/reception means, it is not necessary to provide anothersensor for detecting a variation. Thus, the size of the flowmeter can bedecreased, and the structure of the flow path can be simplified. Inaddition, the flow rate can be measured with a high accuracy in areliable manner within a short space of time even when a variationoccurs.

The flowmeter includes a pair of transmission/reception means whichutilize propagation of an ultrasonic wave as the state change of fluid.Thus, a state change of fluid can be detected by the sonic wavetransmission/reception means. Accordingly, the measurement can bestarted in synchronization with a timing of variation. As a result, theflow rate can be measured with a high accuracy in a reliable manner.

The flowmeter includes transmission/reception means which utilizespropagation of heat as the state change of fluid. Thus, a state changeof fluid can be detected by the heat transmission/reception means.Accordingly, the measurement can be started in synchronization with atiming of variation. As a result, the flow rate can be measured with ahigh accuracy in a reliable manner.

The flowmeter includes: first vibration means and second vibration meansprovided in a flow path for transmitting/receiving an sonic wave;switching means for switching an transmission/reception operation of thefirst vibration means and the second vibration means; variationdetection means for detecting a pressure variation in a flow path of atleast one of the first vibration means and the second vibration means;time measurement means for measuring a propagation time of a sonic wavetransmitted/received by the first vibration means and the secondvibration means; measurement control means for performing synchronouscontrol where, when an output of the variation detection means shows apredetermined change, the measurement means measures a first measurementtime T1 of propagation from the first vibration means at an upstreamside in the flow path to the second vibration means at a downstream sidein the flow path, and when the output of the variation detection meansshows a change opposite to the predetermined change, the measurementmeans measures a second measurement time T2 of propagation from thesecond vibration means at a downstream side in the flow path to thefirst vibration means at an upstream side in the flow path; flow ratedetection means for calculating a flow rate using the first measurementtime T1 and the second measurement time T2. Since the measurement isperformed at a time when a change in a pressure variation is inverted,the phases of the pressure variation and the timing of the measurementcan be shifted. As a result, a measurement error caused by a pressurevariation can be offset.

The flowmeter includes: measurement control means for performingmeasurement control where measurement of the first measurement time T1is started when an output of the variation detection means shows apredetermined change and measurement of the second measurement time T2is started when the output of the variation detection means shows achange opposite to the predetermined change, and measurement controlwhere, in a next measurement, measurement of the first measurement timeT1 is started when the output of the variation detection means shows achange opposite to the predetermined change and measurement of thesecond measurement time T2 is started when the output of the variationdetection means shows the predetermined change; and flow ratecalculation means for calculating the flow rate by successivelyaveraging a first flow rate obtained by using the previous firstmeasurement time T1 and previous second measurement time T2 whilealternately changing start of measurement and a second flow rateobtained by using next first measurement time T1 and next secondmeasurement time T2. Thus, the timing for measurement is changed asdescribed above in order to perform measurement for the firstmeasurement time T1 and the second measurement time T2. As a result,even when a pressure variation is asymmetrical between a high pressureside and a low pressure side, an influence of such a pressure variationcan be offset.

The flowmeter includes repetition means for performingtransmission/reception a plurality of times. Thus, averaging can beperformed by increasing the number of times of measurement, and as aresult, reliable flow rate measurement can be performed.

The flowmeter includes repetition means for performingtransmission/reception a plurality of times over a time period which isa multiple of a variation cycle. Thus, a pressure variation can beaveraged by measuring according to the variation frequency. As a result,a stable flow rate can be measured.

The flowmeter includes repetition means for startingtransmission/reception measurement when an output of the variationdetection means shows a predetermined change and repeating thetransmission/reception measurement with a sonic wave until the output ofthe variation detection means shows the same change as the predeterminedchange. Thus, the start and stop of the measurement can be madeconformable to the frequency of a pressure variation. Therefore, avariation frequency can be measured, and a pressure variation isaveraged. As a result, a stable flow rate can be measured.

The flowmeter includes selection means for switching a case where thefirst vibration means and second vibration means are used fortransmission/reception of a sonic wave and a case where the firstvibration means and second vibration means are used for detection of apressure variation. Thus, at least one of the first vibration means andthe second vibration means is used for pressure detection. As a result,both the flow rate measurement and the pressure measurement can besimultaneously achieved.

The flowmeter includes variation detection means for detecting acomponent of an alternating component of a variation waveform which isin the vicinity of zero. Thus, a variation is detected in the vicinityof a zero component of the variation, and hence the measurement can bestarted in the vicinity of zero variation within a time to perform flowrate measurement. Therefore, by performing the flow rate measurementwithin a time when a variation is small, the measurement can bestabilized even when a variation occurs in a fluid.

The flowmeter includes: frequency detection means for detecting thefrequency of a signal of the variation detection means; and measurementcontrol means for starting measurement only when the frequency detectedby the frequency detection means is a predetermined frequency. Thus, bystarting the measurement only when the frequency is a predeterminedfrequency, measurement can be performed when a predetermined variationoccurs. As a result, a stable flow rate can be measured.

The flowmeter includes detection cancellation means for automaticallystarting measurement after a predetermined time period when a signal ofthe variation detection means is not detected. Thus, even after avariation disappears, the flow rate can be automatically measured when apredetermined time arrives.

The transmission/reception means and the first and second vibrationmeans include piezoelectric transducers. Thus, when the piezoelectrictransducer is used, an ultrasonic wave is used fortransmission/reception while a pressure variation can be detected.

A flowmeter of the present invention includes: transmission/receptionmeans provided in a flow path for performing transmission/receptionusing a state change of fluid; repetition means for repeating signalpropagation by the transmission/reception means; time measurement meansfor measuring a propagation time during repetition by the repetitionmeans; flow rate detection means for detecting a flow rate based on avalue of the time measurement means; variation detection means fordetecting a fluid variation in a flow path; measurement control meansfor controlling each of the above means; and measurement monitoringmeans for monitoring abnormality in each of the above means. Thus, whenthere is a variation in a flow in the flow path, the flow rate ismeasured according to the variation, while abnormality can be quicklydetected by the measurement monitoring means. Accordingly, handling ofabnormality can be correctly performed, and a measured value becomesstable. As a result, the flow rate can be measured with a high accuracy,and the reliability of the measurement can be improved.

The flowmeter includes a pair of transmission/reception means whichutilize propagation of an ultrasonic wave as the state change of fluid.Since a sonic wave is used, the flow rate measurement can be performedeven when there is a variation in fluid. Further, handling ofabnormality can be correctly performed by the measurement monitoringmeans. As a result, the reliability of the measurement can be improved.

The flowmeter includes transmission/reception means which utilizespropagation of heat as the state change of fluid. Since heat propagationis used, the flow rate measurement can be performed even when there is avariation in fluid. Further, handling of abnormality can be correctlyperformed by the measurement monitoring means. As a result, thereliability of the measurement can be improved.

The flowmeter includes: a pair of transmission/reception means providedin a flow path for transmitting/receiving a sonic wave; repetition meansfor repeating signal propagation of the transmission/reception means;time measurement means for measuring a propagation time of a sonic waveduring the repetition by the repetition means; flow rate detection meansfor detecting the flow rate based on a value of the time measurementmeans; variation detection means for detecting a fluid variation in aflow path; measurement control means for controlling each of the abovemeans; and measurement monitoring means for monitoring abnormality in astart signal which directs start of transmission of a sonic wave at afirst output signal of the variation detection means after a measurementdirection signal of the measurement control means, and abnormality in anend signal which directs end of repetition of the transmission/receptionof the sonic wave at second output signal of the variation detectionmeans. Thus, when there is a variation in fluid in the flow path, themeasurement can be performed in synchronization with the frequency ofthe variation, and abnormality can be detected by the measurementmonitoring means. Therefore, a flow rate can be measured with a highaccuracy, and a reliable measured value can be obtained. In addition,handling of abnormality can be correctly performed, and the reliabilityof the measured flow rate value can be improved.

The flowmeter includes measurement monitoring means for directing astart of transmission of a sonic wave after a predetermined time when astart signal is not generated within a predetermined time period after adirection of the measurement control means. Thus, even when there is novariation, and there is no start signal within a predetermined timeperiod, the flow rate can be measured at every predetermined time, andloss of data can be prevented.

The flowmeter includes measurement monitoring means for directing startof transmission of a sonic wave after a predetermined time when a startsignal is not generated within a predetermined time period after adirection of the measurement control means, and for performingmeasurement a predetermined number of repetition times. Thus, even whenthere is no variation, and there is no start signal within apredetermined time period, the flow rate can be measured for apredetermined number of repetition times at every predetermined time,and loss of data can be prevented.

The flowmeter includes measurement monitoring means which does notperform measurement until a next direction of the measurement controlmeans when a start signal is not generated within a predetermined timeperiod after a direction of the measurement control means. By suspendingthe operation until a next measurement direction, unnecessarymeasurement is not performed, whereby the amount of consumed power canbe decreased.

The flowmeter includes measurement monitoring means which terminatesreception of a sonic wave when an end signal is not generated within apredetermined time after a start signal. Since the reception of thesonic wave is forcibly terminated, the measurement is not suspendedwhile waiting for the end signal. Thus, the measurement can proceed to anext process, and a stable measurement operation can be performed.

The flowmeter includes measurement monitoring means which terminatesreception of a sonic wave and outputs a start signal again, when an endsignal is not generated within a predetermined time after a startsignal. Since the reception of the sonic wave is forcibly terminated,the measurement is not suspended while waiting for the end signal.Further, a start signal is output again so as to perform re-measurement.Thus, a stable measurement operation can be performed.

The flowmeter includes measurement monitoring means for stoppingtransmission/reception processing when abnormality occurs in the numberof repetition times. Since the measurement is stopped when the number ofrepetition times is abnormal, only data with a high accuracy can be usedto perform flow rate measurement.

The flowmeter includes measurement monitoring means which compares afirst number of repetition times for measurement where a sonic wave istransmitted from a first one of the pair of transmission/reception meansand received by the second transmission/reception means and a secondnumber of repetition times for measurement where a sonic wave istransmitted from the second transmission/reception means and received bythe first transmission/reception means, and again outputs a start signalwhen the difference between the first and second numbers of repetitiontimes is equal to or greater than a predetermined number of times. Thus,re-measurement is performed when the number of repetition times isgreatly different, whereby measurement with a high accuracy can beperformed with a stable variation frequency.

The flowmeter includes repetition means for setting the number ofrepetition times such that a first number of repetition times formeasurement where a sonic wave is transmitted from first one of the pairof transmission/reception means and received by the secondtransmission/reception means is equal to a second number of repetitiontimes for measurement where a sonic wave is transmitted from the secondtransmission/reception means and received by the firsttransmission/reception means. Thus, by employing the same number ofrepetition times, a predetermined flow rate measurement can be performedeven when a variation frequency is unstable.

The flowmeter includes measurement monitoring means for monitoring thenumber of times that a start signal is output again so as to be limitedto a predetermined number of times or less, such that the outputting ofthe start signal is not permanently repeated. Thus, by limiting thenumber of times of re-measurement, the processing is prevented fromcontinuing permanently. As a result, stable flow rate measurement can beperformed.

The flowmeter measures a flow rate from a difference between inversenumbers of propagation times measured while repeatingtransmission/reception of an ultrasonic wave a plurality of number oftimes. Thus, when an ultrasonic wave is used, transmission/reception canbe performed without being affected by a variation frequency in the flowpath. Further, the flow rate is measured from the difference of inversenumbers of propagation times which are measured while repeating thetransmission/reception, whereby even a variation of a long cycle can bemeasured by units of one cycle. In addition, the difference of thepropagation times which is caused by a variation can be offset by usingthe difference of inverse numbers.

A flowmeter of the present invention includes: instantaneous flow ratedetection means for detecting an instantaneous flow rate; fluctuationdetermination means for determining whether or not there is a pulse in aflow rate value; and at least one or more stable flow rate calculationmeans for calculating a flow rate value using different means accordingto a determination result of the fluctuation determination means. Thus,by determining a variation in a measured flow rate and switching theflow rate calculation means, the flow rate can be calculated by one flowrate measurement means according to the amount of the variation in areliable manner.

A flowmeter of the present invention includes: instantaneous flow ratedetection means for detecting an instantaneous flow rate; filterprocessing means for performing digital-filter processing of a flow ratevalue; and stable flow rate calculation means for calculating a flowrate value using the filter processing means. Thus, when the digitalfilter processing is performed, a calculation equivalent to an averagingprocess can be performed without using a large number of memories forstoring data. Moreover, the filter characteristic can be modified bychanging one variable, i.e., a filter coefficient.

The flowmeter includes stable flow rate calculation means forcalculating a stable flow rate value using the digital filter processingmeans when the fluctuation determination means determines that there isa pulse. Thus, when a pulse occurs, a sharp filter characteristic isselected so as to render a large pulse stable, and the filter processingcan be performed only when a pulse occurs.

The fluctuation determination means determines whether or not avariation amplitude of a flow rate value is equal to or greater than apredetermined value. Thus, a pulse can be determined based on thevariation amplitude of the pulse, whereby the filter processing can bemodified according to the variation amplitude of the pulse.

The filter processing means modifies a filter characteristic accordingto a variation amplitude of a flow rate value. Since the filtercharacteristic is changed according to the variation amplitude of a flowrate value, the filter characteristic can be quickly modified so as tobe a sufficiently relaxed filter characteristic that allows a variationaccording to a variation in a flow rate when the variation is small, andwhen the variation is large, a sharp filter characteristic is selectedsuch that a variation of the flow rate due to a pulse can besignificantly suppressed.

The filter processing is performed only when a flow rate value detectedby the instantaneous flow rate detection means is low. Since the filterprocessing is performed only when the flow rate is low, a variation ofthe flow rate can be quickly handled when the flow rate is high, and aninfluence of fluctuation which is caused when the flow rate is low canbe significantly suppressed.

Filter processing means modifies a filter characteristic according to aflow rate value. Since the filter characteristic is changed according tothe flow rate value, filter processing is performed only when the flowrate is low, a variation of the flow rate can be quickly handled whenthe flow rate is high, and an influence of fluctuation which is causedwhen the flow rate is low can be significantly suppressed.

Filter processing means modifies a filter characteristic according to aninterval of a measurement time of the instantaneous flow rate detectionmeans. Thus, by changing the filter characteristic according to aninterval of the flow rate detection time, the variation can besuppressed with a relaxed filter characteristic when the measurementinterval is short or with a sharp filter characteristic when themeasurement interval is long.

The flowmeter includes filter processing means which modifies a filtercharacteristic such that a cut-frequency of the filter characteristicbecomes high when the flow rate is high, and which modifies a filtercharacteristic such that the filter characteristic has a low cut-offfrequency when the flow rate is low. Thus, the response characteristicis increased when the flow rate is high, and the fluctuation issuppressed when the flow rate is low.

A filter characteristic is modified such that a variation amplitude of aflow rate value calculated by the stable flow rate calculation means iswithin a predetermined value range. Since the filter characteristic ismodified such that the variation amplitude is within a predeterminedvalue range, the flow rate variation can be suppressed so as to bealways equal to or smaller than a predetermined value.

An ultrasonic wave flowmeter which detects a flow rate by using anultrasonic wave is used as the instantaneous flow rate detection means.Thus, by using an ultrasonic wave flowmeter, an instantaneous flow ratecan be measured even when a large flow rate variation occurs. Thus, fromthe flow rate value, a stable flow rate can be calculated.

A heat-based flowmeter is used as the instantaneous flow rate detectionmeans. When the heat-based flowmeter is used, an instantaneous flow ratecan be measured even when a large flow rate variation occurs. Thus, astable flow rate can be calculated from the flow rate value.

Further, the control section controls the periodicity change means so asto sequentially change the frequency of the measurement in the flow ratemeasurement such that the frequency of the measurement is not keptconstant. Thus, noise which is in synchronization with a measurementfrequency or a transmission frequency of an ultrasonic wave is never inthe same phase but dispersed when the ultrasonic wave is received.Therefore, a measurement error can be decreased.

Furthermore, the flowmeter of the present invention includes periodicitychange means for sequentially changing the driving method of the drivercircuit. In response to receipt of an output of the reception detectingcircuit, the control section modifies the periodicity change means everytime the reception detecting circuit detects a receipt of an ultrasonicwave such that the frequency of the measurement is not kept constant.Thus, the periodicity change means can be operated with a plurality ofsettings for measurement within one flow rate measurement cycle. As aresult, noise is dispersively averaged in a measurement result, and areliable measurement result can be obtained.

The periodicity change means switchingly outputs a plurality of outputsignals having different frequencies; and the control section changes afrequency setting of the periodicity change means at every measurementso as to change a driving frequency of the driver circuit. Thus, bychanging the driving frequency, the reception detecting timing can bechanged by a time corresponding to a frequency variation of a drivingsignal. Thus, noise which is in synchronization with a measurementfrequency or a transmission frequency of an ultrasonic wave is never inthe same phase but dispersed when the ultrasonic wave is received.Therefore, a measurement error can be decreased.

The periodicity change means outputs output signals having the samefrequency and a plurality of different phases; and the control sectionoperates such that a phase setting for the output signal of theperiodicity change means is changed at every measurement and a drivingphase of the driver circuit is changed. Thus, by changing the drivingphase, the reception detecting timing can be changed by a timecorresponding to a phase variation of a driving signal. Thus, noisewhich is in synchronization with a measurement frequency or atransmission frequency of an ultrasonic wave is never in the same phasebut dispersed when the ultrasonic wave is received. Therefore, ameasurement error can be decreased.

The periodicity change means outputs a synthesized signal obtained bysuperposing a signal of a first frequency which is an operationfrequency of the ultrasonic wave transducers and a signal of a secondfrequency which is different from the first frequency; and the controlsection outputs, through the driver circuit, at every measurement, anoutput signal where the second frequency of the periodicity change meansis changed. Thus, the periodicity of the flow rate measurement can bedisturbed. As a result, noise which is in synchronization with ameasurement frequency or a transmission frequency of an ultrasonic waveis never in the same phase but dispersed when the ultrasonic wave isreceived. Therefore, a measurement error can be decreased.

The periodicity change means switches the setting between a case wherethere is a second frequency and a case where there is not a secondfrequency. Thus, since the reception detecting timing is changed bychanging the vibration of the ultrasonic wave transducer that transmitsan ultrasonic wave, the periodicity of the flow rate measurement can bedisturbed. As a result, noise which is in synchronization with ameasurement frequency or a transmission frequency of an ultrasonic waveis never in the same phase but dispersed when the ultrasonic wave isreceived. Therefore, a measurement error can be decreased.

The periodicity change means changes the phase setting of the secondfrequency. Thus, since the reception detecting timing is changed bychanging the vibration of the ultrasonic wave transducer that transmitsan ultrasonic wave, the periodicity of the flow rate measurement can bedisturbed. As a result, noise which is in synchronization with ameasurement frequency or a transmission frequency of an ultrasonic waveis never in the same phase but dispersed/averaged when the ultrasonicwave is received. Therefore, a measurement error can be decreased.

The periodicity change means changes the frequency setting of the secondfrequency. Thus, since the reception detecting timing is changed bychanging the vibration of the ultrasonic wave transducer that transmitsan ultrasonic wave, the periodicity of the flow rate measurement can bedisturbed. As a result, noise which is in synchronization with ameasurement frequency or a transmission frequency of an ultrasonic waveis never in the same phase but dispersed when the ultrasonic wave isreceived. Therefore, a measurement error can be decreased.

The periodicity change means includes a delay section capable of settingdifferent delay times; and the control section changes the setting ofthe delay at each transmission of an ultrasonic wave or at each receiptdetection of an ultrasonic wave. Thus, in one measurement operation,reverberation of an ultrasonic wave transmitted in animmediately-previous measurement and an influence of tailing of theultrasonic wave transducers can be dispersed, whereby a measurementerror can be decreased.

The cycle width changed by the periodicity change means is a multiple ofa value corresponding to a variation of a propagation time which iscaused by a measurement error. Thus, when the measured values for allthe settings are summed up and averaged, an error can be suppressed to aminimum.

The cycle width changed by the periodicity change means is equal to acycle of a resonance frequency of the ultrasonic wave transducers. Thus,in a value obtained by summing up and averaging the measured values forall the settings, a measurement error which may be caused byreverberation of an ultrasonic wave or tailing of the ultrasonic wavetransducers is minimum. Thus, the measurement error can be decreased.

The order of patterns for changing the periodicity is the same for bothmeasurement in a upstream direction and measurement in a downstreamdirection. Thus, the measurement with an ultrasonic wave transmittedtoward the upstream side and the measurement with an ultrasonic wavetransmitted toward the downstream side are always performed under thesame conditions. Hence, even when there is a variation in the flow rate,a reliable measurement result can be obtained.

The predetermined number of times is a multiple of a change number ofthe periodicity change means. Thus, all the setting values of theperiodicity change means are uniformly set within a single flow ratemeasurement operation. As a result, a reliable measurement result can beobtained.

Further, a time period from receipt detection to a next count-up time ismeasured by a second timer, whereby measurement can be performed with aresolution higher than that of a first timer. Furthermore, the amount ofconsumed power can be decreased in comparison to a flowmeter having thesame resolution, because it is necessary to operate the second timer foronly a short time period after the receipt detection.

Furthermore, since the second timer is corrected by the first timer, thesecond timer only needs to possess a short-term stability. Thus, it isnot necessary to use a special part. Therefore, a flowmeter with highresolution can be readily realized.

Furthermore, since the second timer is corrected by the first timer whenan output of a temperature sensor varies so as to be equal to or greaterthan a set value, the flowmeter of the present invention can be usedeven when the second timer has a characteristic which varies accordingto a variation of temperature.

Further still, since the second timer is corrected by the first timerwhen an output of a voltage sensor varies so as to be equal to orgreater than a set value, the flowmeter of the present invention can beused even when the second timer has a characteristic which variesaccording to a variation of voltage.

A flowmeter of the present invention includes: a flow rate measurementsection through which fluid to be measured flows; a pair of ultrasonicwave transducers provided in the flow rate measurement section fortransmitting/receiving an ultrasonic wave; a driver circuit for drivingone of the ultrasonic wave transducers; a reception detecting circuitconnected to the other ultrasonic wave transducer for detecting anultrasonic wave signal; a control section for controlling the drivercircuit for a predetermined number of times so as to drive theultrasonic wave transducers again in response to an output of thereception detecting circuit; a timer for measuring an elapsed time forthe predetermined number of times; a calculation section for calculatinga flow rate from an output of the timer; and periodicity stabilizingmeans for sequentially changing a driving method of the driver circuit,wherein the control section controls the periodicity stabilizing meanssuch that a measurement frequency is always maintained to be constant.With this structure, the measurement frequency is always constant evenwhen a propagation time varies. Thus, noise which is in synchronizationwith a measurement frequency or a transmission frequency of anultrasonic wave is always in the same phase when the ultrasonic wave isreceived regardless of a variation in the propagation time. Therefore, ameasurement error can be maintained as a constant value. Accordingly,the flow rate measurement can be stabilized even when the noise has avery long periodic noise.

The control section includes periodicity stabilizing means formed by adelay section capable of setting different delay times; and the controlsection changes an output timing of the driver circuit by switching thedelay times. Since the measurement frequency is maintained to beconstant by changing the delay time, the measurement frequency can bestabilized without giving an influence to driving of the ultrasonic wavetransducers.

The control section controls the driver circuit such that a measurementtime is maintained to be constant. Thus, the measurement frequency canbe maintained to be constant with a simple calculation withoutcalculating a propagation time for each ultrasonic wave transmission.

1. A flowmeter comprising: instantaneous flow rate detection means fordetecting an instantaneous flow rate of fluid; filter processing meansfor removing a pulse flow rate component of the instantaneous flow rateof the fluid by digital filter-processing the instantaneous flow rate ofthe fluid which is detected by the instantaneous flow rate detectionmeans; and stable flow rate calculation means for calculating a stableflow rate of the fluid based on an output from the filter processingmeans.
 2. A flowmeter according to claim 1, further comprisingfluctuation determination means for determining whether theinstantaneous flow rate of the fluid pulses or not, wherein, when thefluctuation determination means determines that the instantaneous flowrate of the fluid pulses, the stable flow rate calculation meanscalculates a stable flow rate of the fluid based on an output from thefilter processing means.
 3. A flowmeter according to claim 2, whereinthe fluctuation determination means determines whether the instantaneousflow rate of the fluid pulses or not, by determining whether or not avariation amplitude of the instantaneous flow rate of the fluid is equalto or greater than a predetermined value.
 4. A flowmeter according toclaim 1, wherein the filter processing means modifies a filtercharacteristic according to a variation amplitude of the instantaneousflow rate of the fluid.
 5. A flowmeter according to claim 1, wherein,when the instantaneous flow rate of the fluid which is detected by theinstantaneous flow rate detection means is lower than a predeterminedflow rate, the filter processing means removes a pulse component of theinstantaneous flow rate of the fluid.
 6. A flowmeter according to claim1, wherein the filter processing means modifies a filter characteristicaccording to the instantaneous flow rate of the fluid.
 7. A flowmeteraccording to claim 1, wherein the filter processing means modifies afilter characteristic according to an interval of measurement times ofthe instantaneous flow rate detection means.
 8. A flowmeter according toclaim 7, wherein, when the flow rate is high, the filter processingmeans modifies a filter characteristic such that a cut-off frequency ofthe filter characteristic becomes high, and when the flow rate is low,the filter processing means modifies the filter characteristic such thatthe cut-off frequency of the filter characteristic becomes low.
 9. Aflowmeter according to claim 1, wherein the filter processing meansmodifies a filter characteristic such that a variation amplitude of thestable flow rate calculated by the stable flow rate calculation means iswithin a predetermined value range.
 10. A flowmeter according to claim1, wherein the instantaneous flow rate detection means detects theinstantaneous flow rate by using an ultrasonic wave.
 11. A flowmeteraccording to claim 1, wherein the instantaneous flow rate detectionmeans detects the instantaneous flow rate by using heat.